Closed sharoonthomas closed 12 years ago
And the test case does truth testing at:
https://github.com/bdauvergne/python-oath/blob/master/tests/totp.py#L69
which will always be true since the accept_totp always returns a tuple and the tuple's length is always greater than 0.
>>> bool((False, 0)) True >>> bool((True, 0)) True >>> bool(()) False
And the test case does truth testing at:
https://github.com/bdauvergne/python-oath/blob/master/tests/totp.py#L69
which will always be true since the accept_totp always returns a tuple and the tuple's length is always greater than 0.