def METHOD_NAME(test_obj):
    """
    Unit Test for DICOM Tree
    :test_tree: Window to be tested - DICOM Tree window
    :return:
    """
    # Test initial values are correct and initial tree is clear
    file_count = len(test_obj.dicom_tree.special_files) + len(
        test_obj.main_window.dicom_tree.patient_dict_container.get("pixmaps_axial"))
    assert test_obj.dicom_tree.model_tree.rowCount() == 0
    assert test_obj.dicom_tree.selector.currentIndex() == 0
    current_text = test_obj.dicom_tree.selector.currentText()
    assert current_text == "Select a DICOM dataset..."
    # Check tree loaded all files from patient_dict_container
    assert test_obj.dicom_tree.selector.count() - 1 == file_count
    # Loop through each file
    for i in range(1, file_count):
        # Set program to next file
        test_obj.dicom_tree.selector.setCurrentIndex(i)
        test_obj.dicom_tree.item_selected(i)
        current_text = test_obj.dicom_tree.selector.currentText()
        # Make New Tree to compare
        if i > len(test_obj.dicom_tree.special_files):
            index = i - len(test_obj.dicom_tree.special_files) - 1
            name = test_obj.dicom_tree.patient_dict_container.filepaths[index]
            dicom_tree_slice = DicomTree(name)
            dict_tree = dicom_tree_slice.dict
            text = "Image Slice " + str(index + 1)
            assert current_text == text
        elif test_obj.dicom_tree.special_files[i - 1] == "rtss":
            dict_tree = test_obj.dicom_tree.patient_dict_container.get(
                "dict_dicom_tree_rtss")
            assert current_text == "RT Structure Set"
        elif test_obj.dicom_tree.special_files[i - 1] == "rtdose":
            dict_tree = test_obj.dicom_tree.patient_dict_container.get(
                "dict_dicom_tree_rtdose")
            assert current_text == "RT Dose"
        elif test_obj.dicom_tree.special_files[i - 1] == "rtplan":
            dict_tree = test_obj.dicom_tree.patient_dict_container.get(
                "dict_dicom_tree_rtplan")
            assert current_text == "RT Plan"
        else:
            dict_tree = None
            print("Error filename in update_tree function")
        # Loop Through Each Row
        parent = test_obj.dicom_tree.model_tree.invisibleRootItem()
        total_count = test_obj.dicom_tree.model_tree.rowCount()
        assert recursive_search(dict_tree, parent) == total_count