'The same warning triggered twice from the same place is included twice
in the list returned by C{flushWarnings}.'

def test_repeated(self):

    message = 'the    message'
    category = RuntimeWarning
    for i in range(2):
        warnings.warn(message=message, category=category)
    self.assertDictSubsets(self.flushWarnings(), ([{'category': category, 'message': message}] * 2))
