def assertDeprecationWarnings(self, recorded_warnings, expected_warnings):
    '\n        Check recorded deprecation warnings match a list of expected messages.\n\n        '
    self.assertEqual(len(recorded_warnings), len(expected_warnings))
    for (recorded, expected) in zip(recorded_warnings, expected_warnings):
        actual = recorded.message
        self.assertEqual(str(actual), expected)
        self.assertEqual(type(actual), DeprecationWarning)
Check recorded deprecation warnings match a list of expected messages.
def assertDeprecationWarnings(self, recorded_warnings, expected_warnings):
    '\n        \n\n        '
    self.assertEqual(len(recorded_warnings), len(expected_warnings))
    for (recorded, expected) in zip(recorded_warnings, expected_warnings):
        actual = recorded.message
        self.assertEqual(str(actual), expected)
        self.assertEqual(type(actual), DeprecationWarning)