示例#1
0
文件: types.py 项目: p3trus/slave
 def __init__(self, *types):
     self.types = [_to_instance(t) for t in types]
示例#2
0
 def test_with_class(self):
     assert isinstance(_to_instance(object), object)
示例#3
0
 def __init__(self, *types):
     self.types = [_to_instance(t) for t in types]
示例#4
0
 def test_with_instance(self):
     assert isinstance(_to_instance(object()), object)