ソースを参照

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)