'Warnings from the function called by C{runWithWarningsSuppressed} are
suppressed if they match the passed in filter.'

def test_runWithWarningsSuppressedFiltered(self):

    filters = [(('ignore', '.*foo.*'), {}), (('ignore', '.*bar.*'), {})]
    self.runWithWarningsSuppressed(filters, warnings.warn, 'ignore    foo')
    self.runWithWarningsSuppressed(filters, warnings.warn, 'ignore    bar')
    self.assertEqual([], self.flushWarnings())
