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