def test_expired_invite_token(self):

        with mock.patch('time.time') as patched_time:
            patched_time.return_value = (7 * 24 * 3600) - 10 - time.time()
            token = invite_token(self.factory.user)

        response = get_request('/invite/{}'.format(token), org=self.factory.org)
        self.assertEqual(response.status_code, 400)
dataset/ETHPy150Open getredash/redash/tests/handlers/test_authentication.py/TestInvite.test_expired_invite_token/swapped operands of `-`