Permalink
Browse files

Merge pull request #9 from alekzvik/master

Add assertIn in other TestCases
  • Loading branch information...
2 parents ee4b2d8 + d8f0beb commit 4a598c7553dd0e86f4cb12bf3b7b31e8d6c59834 @maxcountryman committed Apr 7, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 test_seasurf.py
View
6 test_seasurf.py
@@ -86,6 +86,9 @@ def test_token_validation(self):
rv = self.app.test_client().post('/bar')
self.assertIn('403 Forbidden', rv.data)
+ def assertIn(self, value, container):
+ self.assertTrue(value in container)
+
class SeaSurfTestCaseIncludeViews(unittest.TestCase):
@@ -119,6 +122,9 @@ def test_token_validation(self):
rv = self.app.test_client().post('/bar')
self.assertIn('foo', rv.data)
+ def assertIn(self, value, container):
+ self.assertTrue(value in container)
+
def suite():
suite = unittest.TestSuite()

0 comments on commit 4a598c7

Please sign in to comment.