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
diff options
context:
space:
mode:
Diffstat (limited to 'src/jcl/model/tests/account.py')
-rw-r--r--src/jcl/model/tests/account.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jcl/model/tests/account.py b/src/jcl/model/tests/account.py
index a7917a5..4e350d5 100644
--- a/src/jcl/model/tests/account.py
+++ b/src/jcl/model/tests/account.py
@@ -182,11 +182,16 @@ class AccountModule_TestCase(JCLTestCase):
"user1@jcl.test.com")
self.assertEquals(result, 42)
- def test_int_post_func_default_value(self):
+ def test_int_post_func_default_value2(self):
result = account.int_post_func(None, lambda bare_from_jid: 42, \
"user1@jcl.test.com")
self.assertEquals(result, 42)
+ def test_int_post_func_invalid_value(self):
+ self.assertRaises(FieldError,
+ account.int_post_func,
+ "notanint", None, "user1@jcl.test.com")
+
def test_mandatory_field_empty(self):
self.assertRaises(FieldError,
account.mandatory_field,