Exemplo n.º 1
0
 def test_tactics(self):
     # configure from empty and a layer with tactics
     c = ComposerConfig()
     c._tactics = ['a', 'b', 'c']
     c = c.new_child()
     c._tactics = ['d', 'c']
     self.assertEqual(c.tactics()[:5], ['d', 'c', 'a', 'b', 'c'])
Exemplo n.º 2
0
 def test_rget(self):
     c = ComposerConfig()
     c['a'] = 1
     c = c.new_child()
     c['a'] = 99
     c['b'] = "alpha"
     self.assertEqual(c.get('a'), 99)
     self.assertEqual(c.get('b'), "alpha")
     self.assertEqual(c.rget('a'), [99, 1])