Exemplo n.º 1
0
 def test_processor(self):
     p = Processor()
     i = Instruction('add')
     p.AddInstruction(i)
     g = Group('R')
     g.AddInstruction(i)
     p.AddGroup(g)
     self.assertEqual(p.FindInstruction('add'), i)