'C{assertWarns} does not raise an exception if the function it is passed
triggers the same warning more than once.'

def test_assertWarnsMultipleWarnings(self):

    def deprecated():
        warnings.warn('Woo    deprecated', category=PendingDeprecationWarning)
    def f():
        deprecated()
        deprecated()
    self.assertWarns(PendingDeprecationWarning, 'Woo    deprecated', __file__, f)
