def METHOD_NAME(self):
    person = Person()
    wrong_type = [[], (1, 2, 3), 1j, 2.3, 23, b"not a string", None]
    for value in wrong_type:
        with self.subTest(value=value):
            with self.assertRaises(TraitError):
                person.married = value