def test_merging_scopes_symmetric():
    n1 = UniquelyNamed('my_basename')
    n2 = UniquelyNamed('my_basename')
    n2.merge_scopes(n1)
    assert (n1.name == 'my_basename_1')
    assert (n2.name == 'my_basename_2')
def test_merging_scopes_symmetric():
    n1 = UniquelyNamed('my_basename')
    n2 = UniquelyNamed('my_basename')
    n2.merge_scopes(n1)
    assert (n1.name == 'my_basename_1')
    assert (n2.name == 'my_basename_2')