def METHOD_NAME(self):
    class A(dict):
        pass
    class B(list):
        pass
    self.assertTrue(self.stdcompleter.use_main_ns)
    self.assertFalse(self.completer.use_main_ns)
    self.assertFalse(rlcompleter.Completer(A()).use_main_ns)
    self.assertRaises(TypeError, rlcompleter.Completer, B((1,)))