Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dax/jcl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Rousselie <david.rousselie@happycoders.org>2010-06-09 15:46:38 +0400
committerDavid Rousselie <david.rousselie@happycoders.org>2010-06-09 15:46:38 +0400
commit348f5ce37e00cfd213cfa4ef133d90fd706fe732 (patch)
tree8df74e0f8e8b5b70c1a5803ca87f3962eebd8114 /src
parent3d0d70c97674f96c811ba5fe46c1057cdd2125a2 (diff)
Fix tests
Diffstat (limited to 'src')
-rw-r--r--src/jcl/model/tests/account.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/jcl/model/tests/account.py b/src/jcl/model/tests/account.py
index 964d776..a7917a5 100644
--- a/src/jcl/model/tests/account.py
+++ b/src/jcl/model/tests/account.py
@@ -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):
"""