예제 #1
0
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()
예제 #2
0
 def setUp(self):
     self.instruction = Instruction("soy la instrucion 1", True)