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