|
@@ -1,8 +1,5 @@
|
|
|
from django.test import TestCase
|
|
from django.test import TestCase
|
|
|
|
|
|
|
|
-# Create your tests here.
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
class SteamViewTestCase(TestCase):
|
|
class SteamViewTestCase(TestCase):
|
|
|
def testSteam(self):
|
|
def testSteam(self):
|
|
|
resp = self.client.get('/hackathon/steam/')
|
|
resp = self.client.get('/hackathon/steam/')
|
|
@@ -36,6 +33,10 @@ class SteamViewTestCase(TestCase):
|
|
|
if 'appid' in dict:
|
|
if 'appid' in dict:
|
|
|
self.assertTrue('appid' in dict)
|
|
self.assertTrue('appid' in dict)
|
|
|
|
|
|
|
|
|
|
+ def testSteamDiscountedGamesDiscount(self):
|
|
|
|
|
+ resp = self.client.get('/hackathon/steamDiscountedGames/')
|
|
|
|
|
+ self.assertEqual(resp.context, None)
|
|
|
|
|
+
|
|
|
|
|
|
|
|
class HackathonViewsTestCase(TestCase):
|
|
class HackathonViewsTestCase(TestCase):
|
|
|
def testIndex(self):
|
|
def testIndex(self):
|