예제 #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))