Permalink
Browse files

Add legacy test functions

  • Loading branch information...
1 parent c798de6 commit 036600916a7a593df9d698f015988bddcedaca2f @mattupstate committed Apr 4, 2013
Showing with 18 additions and 0 deletions.
  1. +18 −0 tests/functional_tests.py
View
@@ -53,6 +53,24 @@ def _create_app(self, auth_config):
if app_type == 'peewee':
return create_peewee_app(auth_config, False)
+ def assertIn(self, member, container, msg=None):
+ if hasattr(unittest.TestCase, 'assertIn'):
+ return unittest.TestCase.assertIn(self, member, container, msg)
+
+ return self.assertTrue(member in container)
+
+ def assertNotIn(self, member, container, msg=None):
+ if hasattr(unittest.TestCase, 'assertNotIn'):
+ return unittest.TestCase.assertNotIn(self, member, container, msg)
+
+ return self.assertFalse(member in container)
+
+ def assertIsNotNone(self, obj, msg=None):
+ if hasattr(unittest.TestCase, 'assertIsNotNone'):
+ return unittest.TestCase.assertIsNotNone(self, obj, msg)
+
+ return self.assertTrue(obj is not None)
+
class TwitterSocialTests(SocialTest):

0 comments on commit 0366009

Please sign in to comment.