Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/c/r/crtauth-HEAD/crtauth/server.py   crtauth(Download)
                                                   "secret")
 
        t = protocol.Token.deserialize(hmac_token.payload)
 
        if t.valid_to < self.now_func():

src/c/r/crtauth-HEAD/test/protocol_test.py   crtauth(Download)
def test_deserialize_token():
    ref_buf = ref_token.serialize()
 
    token = protocol.Token.deserialize(ref_buf)
 
def test_deserialize_token():
    buf = "t\x00\x00\x00Q]\x8b\x17Q]\x8bU\x00\x00\x00\x04test"
    token = protocol.Token.deserialize(buf)
    assert token.username == 'test'
    assert token.valid_from == 1365084951