'Register an adapter with L{components.registerAdapter} for the given
class or interface and verify that the adapter can be looked up with
L{components.getAdapterFactory}.'

def _registerAdapterForClassOrInterface(self, original):

    adapter = (lambda o: None)
    components.registerAdapter(adapter, original, ITest)
    self.assertIs(components.getAdapterFactory(original, ITest, None), adapter)
