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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Given a module_name we need to get a state key for, and a
message that has information to make the key, this function
calls any registered @state_key_generator and returns that
as the key.  If none is given then it just returns module_name
as the key.

src/l/a/lamson-1.3.4/lamson/testing.py   lamson(Download)
    """
    fake = {'to': To}
    state_key = routing.Router.state_key(module, fake)
    assert_equal(routing.Router.STATE_STORE.get(state_key, From), state)
 

src/l/a/lamson-HEAD/lamson/testing.py   lamson(Download)
    """
    fake = {'to': To}
    state_key = routing.Router.state_key(module, fake)
    assert_equal(routing.Router.STATE_STORE.get(state_key, From), state)