Example #1
0
File: account.py Project: dax/jcl
 def test_int_post_func_default_value2(self):
     result = account.int_post_func(None, lambda bare_from_jid: 42, \
                                       "*****@*****.**")
     self.assertEquals(result, 42)
Example #2
0
File: account.py Project: dax/jcl
 def test_int_post_func(self):
     result = account.int_post_func("42", None, "*****@*****.**")
     self.assertEquals(result, 42)