예제 #1
0
    def test_token_with_past_expiry_is_not_valid(self):
        token = Token(userid='acct:[email protected]')
        token.expires = _seconds_from_now(-1800)

        assert not token.is_valid()
예제 #2
0
    def test_token_with_past_expiry_is_not_valid(self):
        token = Token(userid='acct:[email protected]')
        token.expires = _seconds_from_now(-1800)

        assert not token.is_valid()