Test that cls is (or is not) a subclass of superclass (which can be a class or a tuple of classes, as supported by issubclass()). To check for the exact type, use assertIs(cls, superclass).
unittest/TestCase.assertIsSubclass
TestCase.assertIsSubclass