def test_repr(self): import_path = ImportPath(importer=Module('foo'), imported=Module('bar')) assert repr(import_path) == '<ImportPath: foo <- bar>'