コード例 #1
0
 def test_capable_by_registry_name(self):
     assert ModelAttributeMapper.capable('Model.System.Model=>name')
コード例 #2
0
 def test_not_capable(self):
     assert not (ModelAttributeMapper.capable(None))
コード例 #3
0
 def test_capable_by_declaration(self):
     assert ModelAttributeMapper.capable(Model.System.Model.use('name'))
コード例 #4
0
 def test_not_str_capable(self):
     assert not (ModelAttributeMapper.capable('Model.System.Model'))
コード例 #5
0
ファイル: test_mapper.py プロジェクト: AnyBlok/AnyBlok
 def test_capable_by_registry_name(self):
     self.assertTrue(ModelAttributeMapper.capable(
         'Model.System.Model=>name'))
コード例 #6
0
ファイル: test_mapper.py プロジェクト: AnyBlok/AnyBlok
 def test_capable_by_declaration(self):
     self.assertTrue(ModelAttributeMapper.capable(
         Model.System.Model.use('name')))
コード例 #7
0
 def test_not_capable(self):
     self.assertFalse(ModelAttributeMapper.capable(None))
コード例 #8
0
 def test_not_str_capable(self):
     self.assertFalse(ModelAttributeMapper.capable('Model.System.Model'))