def test_parse_02(self): mov = Mov.parse(['ax,', 'bx']) self.assertEqual(mov.source, 'bx') self.assertEqual(mov.dest, 'ax')
def test_parse_03(self): self.assertRaises(SyntaxError, lambda: Mov.parse(['ax,', 'bx', 'ip']))
def test_parse_01(self): mov = Mov.parse(['ax', 'bx']) self.assertIsInstance(mov, Mov)