def METHOD_NAME(self):
    actual = compile_str("name")
    expected = [
        create_graph(
            NamedTraitObserver(name="name", notify=True, optional=False),
        ),
    ]
    self.assertEqual(actual, expected)