Exemple #1
0
 def test_str(self):
     passes = inspector.IsInstance(str)
     eq_(str(passes), "arg.isinstance('str')")
Exemple #2
0
 def test_list(self):
     passes = inspector.IsInstance((str, int))
     eq_(str(passes), "arg.isinstance(('str', 'int'))")
Exemple #3
0
 def test_repr(self):
     passes = inspector.IsInstance(int)
     eq_(repr(passes), "arg.isinstance('int')")