def assertDeprecations(self, testMethod, message):
        warnings = self.flushWarnings([testMethod])
        self.assertEqual(warnings[0]['category'], DeprecationWarning)
        self.assertEqual(warnings[0]['message'], message)
        self.assertEqual(len(warnings), 1)
Assert that the a DeprecationWarning with the given message was
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/test/test_address.py/AddressTestCaseMixin.assertDeprecations