Преглед на файлове

Adding integration test for API Examples view

David Leonard преди 10 години
родител
ревизия
504ef22502
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      hackathon_starter/hackathon/tests.py

+ 5 - 0
hackathon_starter/hackathon/tests.py

@@ -1,3 +1,8 @@
 from django.test import TestCase
 
 # Create your tests here.
+
+class HackathonViewsTestCase(TestCase):
+	def testIndex(self):
+		resp = self.client.get('/hackathon/api/')
+		self.assertEqual(resp.status_code, 200)