def test_check_not_pushed(self): Command.CheckNotPushed(self.interpreter).execute_command(42) self.assertEqual(0x200, self.interpreter.instruction_pointer) Command.CheckNotPushed(self.interpreter).execute_command(43) self.assertEqual(0x202, self.interpreter.instruction_pointer)