def test_several(self):
        firstMessage = "first warning message"
        firstCategory = UserWarning
        warnings.warn(message=firstMessage, category=firstCategory)

        secondMessage = "second warning message"
        secondCategory = RuntimeWarning
        warnings.warn(message=secondMessage, category=secondCategory)

        self.assertDictSubsets(
            self.flushWarnings(),
            [{'category': firstCategory, 'message': firstMessage},
             {'category': secondCategory, 'message': secondMessage}])
Find the first checker factory that supports the given authType.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/trial/test/test_warning.py/FlushWarningsTests.test_several--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/cred/strcred.py/findCheckerFactory