def METHOD_NAME(self):
    # Attributes like properties and slots should be completed even when
    # they haven't been created on an instance
    class Foo:
        __slots__ = ("bar",)
    completer = rlcompleter.Completer(dict(f=Foo()))
    self.assertEqual(completer.complete('f.', 0), 'f.bar')