소스 검색

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)