'Verify that a new adapter can be registered for a particular
to-interface from a subclass of a type or interface which already has an
adapter registered to that interface and that the subclass adapter takes
precedence over the base class adapter.'

def _subclassAdapterRegistrationForClassOrInterface(self, original):

    firstAdapter = (lambda o: True)
    secondAdapter = (lambda o: False)
    class TheSubclass(original, ):
        pass
    components.registerAdapter(firstAdapter, original, ITest)
    components.registerAdapter(secondAdapter, TheSubclass, ITest)
    self.assertIs(components.getAdapterFactory(original, ITest, None), firstAdapter)
    self.assertIs(components.getAdapterFactory(TheSubclass, ITest, None), secondAdapter)
