def METHOD_NAME(self, constructor: Type, check_entries: str) -> None:
    checks = python_types_entries[check_entries]
    for args, argv, expected, err in checks:
        if not err:
            inst = constructor(*args, **argv)
            self.assertEqual(expected, str(inst))
        else:
            with self.assertRaises(err) as e:
                constructor(*args, **argv)
            self.assertEqual(expected, str(e.exception))