def test_assertWarnsWrongMessage(self):
        def deprecated(a):
            warnings.warn("Foo deprecated", category=DeprecationWarning)
            return a
        self.assertRaises(self.failureException,
            self.assertWarns, DeprecationWarning, "Bar deprecated", __file__,
            deprecated, 123)
Remove raw ansi codes from string. This assumes pure
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/trial/test/test_assertions.py/WarningAssertionTests.test_assertWarnsWrongMessage--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/utils/ansi.py/strip_raw_ansi