浏览代码

Adding integration test for steam endpoint

David Leonard 10 年之前
父节点
当前提交
96fbbc7e11
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      hackathon_starter/hackathon/tests.py

+ 5 - 1
hackathon_starter/hackathon/tests.py

@@ -5,4 +5,8 @@ from django.test import TestCase
 class HackathonViewsTestCase(TestCase):
 	def testIndex(self):
 		resp = self.client.get('/hackathon/api/')
-		self.assertEqual(resp.status_code, 200)
+		self.assertEqual(resp.status_code, 200)
+
+	def testSteam(self):
+		resp = self.client.get('/hackathon/steam')
+		self.assertEqual(resp.status_code, 301)