def test_final_path_4():
    """Test when tests/ DNE but mission_data/data.json exist"""
    os.chdir('test_4')
    assert os.path.exists(data_path_2)
    assert planetary_test_data.setup_json_file() == data_path_2
    os.chdir('..')
    assert os.path.basename(os.getcwd()) == 'tests'
def test_final_path_4():
    """Test when tests/ DNE but mission_data/data.json exist"""
    os.chdir('test_4')
    assert os.path.exists(data_path_2)
    assert planetary_test_data.setup_json_file() == data_path_2
    os.chdir('..')
    assert os.path.basename(os.getcwd()) == 'tests'
def test_final_path_5():
    """Test when tests/ DNE, mission_data exists but data.json DNE"""
    os.chdir('test_5')
    assert os.path.exists('mission_data')
    assert planetary_test_data.setup_json_file() == data_path_2
    os.remove(data_path_2)
    assert not (os.path.exists(data_path_2))
    os.chdir('..')
    assert os.path.basename(os.getcwd()) == 'tests'
def test_final_path_2():
    """Test when tests/mission_data exists but data.json Does Not Exist(DNE)"""
    os.chdir('test_2')
    assert os.path.exists(os.path.join('tests', 'mission_data'))
    assert planetary_test_data.setup_json_file() == data_path_1
    os.remove(data_path_1)
    assert not (os.path.exists(data_path_1))
    os.chdir('..')
    assert os.path.basename(os.getcwd()) == 'tests'
def test_final_path_5():
    """Test when tests/ DNE, mission_data exists but data.json DNE"""
    os.chdir('test_5')
    assert os.path.exists('mission_data')
    assert planetary_test_data.setup_json_file() == data_path_2
    os.remove(data_path_2)
    assert not(os.path.exists(data_path_2))
    os.chdir('..')
    assert os.path.basename(os.getcwd()) == 'tests'
def test_final_path_2():
    """Test when tests/mission_data exists but data.json Does Not Exist(DNE)"""
    os.chdir('test_2')
    assert os.path.exists(os.path.join('tests', 'mission_data'))
    assert planetary_test_data.setup_json_file() == data_path_1
    os.remove(data_path_1)
    assert not(os.path.exists(data_path_1))
    os.chdir('..')
    assert os.path.basename(os.getcwd()) == 'tests'
def test_final_path_6():
    """Test when tests, mission_data, and data.json DNE"""
    os.chdir('test_6')
    assert planetary_test_data.setup_json_file() == data_path_2
    os.remove(data_path_2)
    assert not (os.path.exists(data_path_2))
    os.rmdir(os.path.join('mission_data'))
    assert not (os.path.exists('mission_data'))
    os.chdir('..')
    assert os.path.basename(os.getcwd()) == 'tests'
def test_final_path_6():
    """Test when tests, mission_data, and data.json DNE"""
    os.chdir('test_6')
    assert planetary_test_data.setup_json_file() == data_path_2
    os.remove(data_path_2)
    assert not(os.path.exists(data_path_2))
    os.rmdir(os.path.join('mission_data'))
    assert not(os.path.exists('mission_data'))
    os.chdir('..')
    assert os.path.basename(os.getcwd()) == 'tests'
def test_final_path_3():
    """Test when tests/ exists but mission_data/data.json DNE"""
    os.chdir('test_3')
    assert os.path.exists('tests')
    assert planetary_test_data.setup_json_file() == data_path_1
    os.remove(data_path_1)
    assert not (os.path.exists(data_path_1))
    os.rmdir(os.path.join('tests', 'mission_data'))
    assert not (os.path.exists(os.path.join('tests', 'mission_data')))
    os.chdir('..')
    assert os.path.basename(os.getcwd()) == 'tests'
def test_final_path_3():
    """Test when tests/ exists but mission_data/data.json DNE"""
    os.chdir('test_3')
    assert os.path.exists('tests')
    assert planetary_test_data.setup_json_file() == data_path_1
    os.remove(data_path_1)
    assert not(os.path.exists(data_path_1))
    os.rmdir(os.path.join('tests', 'mission_data'))
    assert not(os.path.exists(os.path.join('tests', 'mission_data')))
    os.chdir('..')
    assert os.path.basename(os.getcwd()) == 'tests'