def METHOD_NAME():
    """
    Tests storing a file twice.
    The storage should make the files unique, i.e. remove the duplicate.
    """
    with unittest.mock.patch("UM.Resources.Resources.getDataStoragePath", lambda: "test_central_storage/4.9"):
        shutil.copy(TEST_FILE_PATH, TEST_FILE_PATH + ".copy.txt")
        CentralFileStorage.store(TEST_FILE_PATH, "myfile")
        CentralFileStorage.store(TEST_FILE_PATH + ".copy.txt", "myfile")  # Shouldn't raise error. File contents are identical.
        assert not os.path.exists(TEST_FILE_PATH + ".copy.txt")  # Duplicate must be removed.