Exemple #1
0
 def test_repr(self):
     assert repr(t.Callable()) == '<Callable>'
Exemple #2
0
 def test_callable(self):
     t.Callable().check(lambda: 1)
     res = extract_error(t.Callable(), 1)
     self.assertEqual(res, 'value is not callable')
Exemple #3
0
 def test_callable(self):
     t.Callable().check(lambda: 1)
     res = extract_error(t.Callable(), 1)
     assert res == 'value is not callable'