'Test assertWarns failure when the category is wrong.'

def test_assertWarnsWrongCategory(self):

    def deprecated(a):
        warnings.warn('Foo    deprecated', category=DeprecationWarning)
        return a
    self.assertRaises(self.failureException, self.assertWarns, UserWarning, 'Foo    deprecated', __file__, deprecated, 123)
