def METHOD_NAME(self):
    @cache.cache(maxage=2)
    def ex(a, b, c):
        return a+b+c
    with patch("time.time") as tmock:
        tmock.return_value = 0.999
        self.assertEqual(ex(1, 1, 1), 3)
        self.assertEqual(ex(2, 2, 2), 3)
        self.assertEqual(ex(3, 3, 3), 3)
        # value is still cached after 1 second
        tmock.return_value += 1.0
        self.assertEqual(ex(3, 3, 3), 3)
        self.assertEqual(ex(2, 2, 2), 3)
        self.assertEqual(ex(1, 1, 1), 3)
        # new value after 'maxage' seconds
        tmock.return_value += 1.0
        self.assertEqual(ex(3, 3, 3), 9)
        self.assertEqual(ex(2, 2, 2), 9)
        self.assertEqual(ex(1, 1, 1), 9)