def assertParse(self, expected, graftpoints): self.assertEqual(expected, parse_graftpoints(iter(graftpoints)))