Fix tests

This commit is contained in:
David Rousselie
2010-06-09 13:46:38 +02:00
parent 3d0d70c976
commit 348f5ce37e
2 changed files with 137 additions and 2 deletions

View File

@@ -161,8 +161,8 @@ class AccountModule_TestCase(JCLTestCase):
result = account.boolean_post_func(u"False", None, "user1@jcl.test.com")
self.assertEquals(result, False)
def test_boolean_post_func_with_1(self):
result = account.boolean_post_func(1, None, "user1@jcl.test.com")
def test_boolean_post_func_with_0_str(self):
result = account.boolean_post_func("0", None, "user1@jcl.test.com")
self.assertEquals(result, False)
def test_boolean_post_func_with_True(self):
@@ -254,6 +254,9 @@ class AccountModule_TestCase(JCLTestCase):
self.assertEquals(_account.name, "account11")
class InheritableAccount_TestCase(JCLTestCase):
def setUp(self):
JCLTestCase.setUp(self, tables=[Account])
self.account_class = Account
def test_get_register_fields(self):
"""