|
|
@@ -2,11 +2,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)
|
|
|
|
|
|
+class SteamViewTestCase(TestCase):
|
|
|
def testSteam(self):
|
|
|
resp = self.client.get('/hackathon/steam/')
|
|
|
self.assertEqual(resp.status_code, 200)
|
|
|
@@ -40,6 +37,11 @@ class HackathonViewsTestCase(TestCase):
|
|
|
self.assertTrue('appid' in dict)
|
|
|
|
|
|
|
|
|
+class HackathonViewsTestCase(TestCase):
|
|
|
+ def testIndex(self):
|
|
|
+ resp = self.client.get('/hackathon/api/')
|
|
|
+ self.assertEqual(resp.status_code, 200)
|
|
|
+
|
|
|
def testQuandlDowJones(self):
|
|
|
resp = self.client.get('/hackathon/quandlDowJones/')
|
|
|
self.assertEqual(resp.status_code, 200)
|