class TestInstruction(unittest.TestCase): def setUp(self): self.instruction = Instruction("soy la instrucion 1", True) def test_code_Instruction(self): self.assertEqual(self.instruction.get_code(), "soy la instrucion 1" , "the Instruction is not same") def test_is_cpu_instruction(self): self.assertTrue(self.instruction.is_cpu_instruction()) def test_run(self): self.instruction.run()
def setUp(self): self.instruction = Instruction("soy la instrucion 1", True)