def METHOD_NAME(self):
    @reader
    class TestReader(SourceReader):
        type = self.TEST_TYPE
        def read(self):
            pass
    self.assertEqual(reader_cls_factory[self.TEST_TYPE], TestReader)
    reader_cls_factory.pop(self.TEST_TYPE)