| 12345678910111213141516 |
- 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)
- def testSteam(self):
- resp = self.client.get('/hackathon/steam')
- self.assertEqual(resp.status_code, 301)
- def testSteamDiscountedGames(self):
- resp = self.client.get('/hackathon/steamDiscountedGames/')
- self.assertEqual(resp.status_code, 200)
|