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