Explorar el Código

Adding integration test for API Examples view

David Leonard hace 10 años
padre
commit
504ef22502
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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)