human
I wrote the below code

    now = int(time.time())
    server_url = 'http://www.myopenid.com/openid'
    def genAssoc(issued, lifetime=600):
        sec = generateSecret(20)
        hdl = generateHandle(128)
        return Association(hdl, sec, (now + issued), lifetime, 'HMAC-SHA1')
    def checkRetrieve(url, handle=None, expected=None):
        retrieved_assoc = store.getAssociation(url, handle)
        assert (retrieved_assoc == expected), (retrieved_assoc, expected)
        if (expected is not None):
            if (retrieved_assoc is expected):
                print 'Unexpected:    retrieved    a    reference    to    the    expected    value    instead    of    a    new    object'
            assert (retrieved_assoc.handle == expected.handle)
            assert (retrieved_assoc.secret == expected.secret)
    def checkRemove(url, handle, expected):
        present = store.removeAssociation(url, handle)
        assert (bool(expected) == bool(present))
    assoc = genAssoc(issued=0)
    checkRetrieve(server_url)
    store.storeAssociation(server_url, assoc)
    checkRetrieve(server_url, None, assoc)
    checkRetrieve(server_url, None, assoc)
    store.storeAssociation(server_url, assoc)
    checkRetrieve(server_url, None, assoc)
    checkRemove(server_url, (assoc.handle + 'x'), False)
    checkRemove((server_url + 'x'), assoc.handle, False)
    checkRemove(server_url, assoc.handle, True)
    checkRemove(server_url, assoc.handle, False)
    store.storeAssociation(server_url, assoc)
    assoc2 = genAssoc(issued=1)
    store.storeAssociation(server_url, assoc2)
    checkRetrieve(server_url, None, assoc2)
    checkRetrieve(server_url, assoc.handle, assoc)
    checkRetrieve(server_url, assoc2.handle, assoc2)
    assoc3 = genAssoc(issued=2, lifetime=100)
    store.storeAssociation(server_url, assoc3)
    checkRetrieve(server_url, None, assoc3)
    checkRetrieve(server_url, assoc.handle, assoc)
    checkRetrieve(server_url, assoc2.handle, assoc2)
    checkRetrieve(server_url, assoc3.handle, assoc3)
    checkRemove(server_url,...

What's a good function header?
assistant
#Here is Python program to print 'Unexpected:    retrieved    a    reference    to    the    expected    value    instead    of    a    new    object'
.

def testStore(store):