def test_slop(self):
        key = os.urandom(20)
        device = TOTPDevice(key=key)
        now = timezone.now()

        self.assertTrue(device.validate_token(oath.totp(key, datetime.timedelta(seconds=30) - now)))
        self.assertTrue(device.validate_token(oath.totp(key, now)))
        self.assertTrue(device.validate_token(oath.totp(key, now + datetime.timedelta(seconds=30))))
dataset/ETHPy150Open gavinwahl/django-u2f/testproj/testproj/tests.py/TestTOTP.test_slop/swapped operands of `-`