|
@@ -82,4 +82,10 @@ class HackathonViewsTestCase(TestCase):
|
|
|
|
|
|
|
|
def testYelpContent(self):
|
|
def testYelpContent(self):
|
|
|
resp = self.client.post('/hackathon/yelp/', {'location': 'yelp-san-francisco'})
|
|
resp = self.client.post('/hackathon/yelp/', {'location': 'yelp-san-francisco'})
|
|
|
- self.assertNotEqual(resp.content, '')
|
|
|
|
|
|
|
+ self.assertNotEqual(resp.content, '')
|
|
|
|
|
+
|
|
|
|
|
+ def testYelpContentNotNone(self):
|
|
|
|
|
+ resp = self.client.post('/hackathon/yelp/', {'location': 'yelp-san-francisco'})
|
|
|
|
|
+ self.assertIsNotNone(resp.content)
|
|
|
|
|
+
|
|
|
|
|
+
|