Exemplo n.º 1
0
 def test_get_attribute(self):
     xc = XigtCorpus(attributes={'one': 1, 'two': 2})
     self.assertEqual(xc.get_attribute('one'), 1)
     self.assertEqual(xc.get_attribute('two'), 2)
     self.assertIs(xc.get_attribute('three'), None)
     self.assertEqual(xc.get_attribute('three', inherit=True), None)
Exemplo n.º 2
0
 def test_get_attribute(self):
     xc = XigtCorpus(attributes={'one': 1, 'two': 2})
     assert xc.get_attribute('one') == 1
     assert xc.get_attribute('two') == 2
     assert xc.get_attribute('three') is None
     assert xc.get_attribute('three', inherit=True) == None