Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #9 from alekzvik/master

Add assertIn in other TestCases
  • Loading branch information...
commit 4a598c7553dd0e86f4cb12bf3b7b31e8d6c59834 2 parents ee4b2d8 + d8f0beb
Max Countryman authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 test_seasurf.py
6 test_seasurf.py
View
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.