def METHOD_NAME():
    # Test that replacing a texture doesn't create a unique TextureAttrib.
    tattr1 = core.TextureAttrib.make()
    tattr1 = tattr1.add_on_stage(stage1, tex1)
    tattr2 = tattr1.add_on_stage(stage1, tex1)
    assert tattr1.get_num_on_stages() == 1
    assert tattr2.get_num_on_stages() == 1
    assert tattr1.compare_to(tattr2) == 0