示例#1
0
 def test_capable_by_declaration(self):
     assert ModelMapper.capable(Model.System.Model)
示例#2
0
 def test_capable_by_registry_name(self):
     assert ModelMapper.capable('Model.System.Model')
示例#3
0
 def test_not_capable(self):
     assert not (ModelMapper.capable(None))
示例#4
0
 def test_capable_by_model_repr(self):
     assert ModelMapper.capable(ModelRepr('Model.System.Model'))
示例#5
0
 def test_capable_by_registry_name(self):
     self.assertTrue(ModelMapper.capable('Model.System.Model'))
示例#6
0
 def test_capable_by_declaration(self):
     self.assertTrue(ModelMapper.capable(Model.System.Model))
示例#7
0
 def test_not_capable(self):
     self.assertFalse(ModelMapper.capable(None))