def METHOD_NAME(testrepo):
    # get a commit object twice and see if it equals ittestrepo
    commit_id = testrepo.lookup_reference('refs/heads/master').target
    commit_a = testrepo[commit_id]
    commit_b = testrepo[commit_id]
    assert commit_a is not commit_b
    assert commit_a == commit_b
    assert not(commit_a != commit_b)