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