Beispiel #1
0
def test_reference_with_branch_serialization_roundtrip():
    a = Reference(Reference.BRANCH, 'branch_name')
    ser = a.serialize()
    b = Reference.parse(ser)
    assert a == b
Beispiel #2
0
def test_reference_with_commit_serialization_roundtrip():
    a = Reference(Reference.COMMIT, 64 * 'a')
    ser = a.serialize()
    b = Reference.parse(ser)
    assert a == b