'L{callDeprecated} ignores all deprecations apart from the first.
Multiple warnings are generated when a deprecated function calls
another deprecated function. The first warning is the one generated by
the explicitly called function. That\'s the warning that we care about.'

def test_nestedDeprecation(self):

    differentVersion = Version('Foo', 1, 2, 3)
    def nestedDeprecation(*args):
        return oldMethod(*args)
    nestedDeprecation = deprecated(differentVersion)(nestedDeprecation)
    self.callDeprecated(differentVersion, nestedDeprecation, 24)
    warningsShown = self.flushWarnings()
    self.assertEqual(len(warningsShown), 1)
