'For now, assertWarns is unable to handle multiple different warnings,
so it should raise an exception if it\'s the case.'

def test_assertWarnsDifferentWarnings(self):

    def deprecated(a):
        warnings.warn('Woo    deprecated', category=DeprecationWarning)
        warnings.warn('Another    one', category=PendingDeprecationWarning)
    e = self.assertRaises(self.failureException, self.assertWarns, DeprecationWarning, 'Woo    deprecated', __file__, deprecated, 123)
    self.assertEqual(str(e), "Can't    handle    different    warnings")
