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