Commit dca43cf1 authored by Alec Wang's avatar Alec Wang

added tests for orders pages

parent a80a2440
......@@ -23,3 +23,25 @@ class IngredientsPagesTests(TestCase):
response = self.client.get('/ingredients_detail/')
self.assertContains(response, "Ingredients - Detail", html=True)
self.assertTemplateUsed('ingredients_detail.html')
class OrdersPagesTests(TestCase):
def test_orders_list_page(self):
response = self.client.get('/orders_list/')
self.assertContains(response, "Orders - List", html=True)
self.assertTemplateUsed(response, 'orders_list.html')
def test_orders_create_page(self):
response = self.client.get('/orders_create/')
self.assertContains(response, "Orders - Create", html=True)
self.assertTemplateUsed(response, 'orders_create_form.html')
def test_orders_update_page(self):
response = self.client.get('/orders_update/')
self.assertContains(response, "Orders - Update", html=True)
self.assertTemplateUsed(response, 'orders_update_form.html')
def test_orders_detail_page(self):
response = self.client.get('/orders_detail/')
self.assertContains(response, "Orders - Detail", html=True)
self.assertTemplateUsed(response, 'orders_detail.html')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment