# Path: ship/utils/fileloaders/fileloader.py
# class FileLoader(object):
#     def __init__(self):
#     def loadFile(self, filepath, arg_dict={}):
# 
# Path: ship/utils/filetools.py
# def getFile(file_path):
# def writeFile(contents, file_path, add_newline=True):
# def finalFolder(path):
# def setFinalFolder(path, folder_name):
# def getFileName(in_path, with_extension=False):
# def directory(in_path):
#     def __init__(self, path, root=None):
#     def _setupVars(self, path):
#     def finalFolder(self):
#     def setFinalFolder(self, folder_name):
#     def absolutePath(self, filename=None, relative_roots=[], normalize=True):
#     def directory(self):
#     def relativePath(self, with_extension=True, filename=None):
#     def filenameAndExtension(self):
#     def setAbsolutePath(self, absolute_path, keep_relative_root=False):
#     def setFilename(self, filename, has_extension=False, keep_extension=False):
#     def pathExists(self, ext=None):
# class PathHolder(object):
#     ABSOLUTE, RELATIVE, DIRECTORY, NAME, EXTENSION, NAME_AND_EXTENSION = range(6)
# 
# Path: integration_tests/utils.py
# def softAssertion(var, value, testEqual=True):
# def softAssertionIn(var, value, testIn=True):


import os
import copy
from ship.utils.fileloaders import fileloader
from ship.utils import filetools as ft
from integration_tests import utils
        print ('Testing se_vals variables count...')
        vars = self.tuflow.control_files['TGC'].variables(se_vals=se_vals)
        utils.softAssertion(len(vars), 6)
        print ('Done')

    
    def test_files(self):
        print ('Testing no_duplicates=True files count...')
        test_filecounts = {
            'TCF': 13,
            'ECF': 4,
            'TGC': 14,
            'TBC': 2,
        }
        for key, c in self.tuflow.control_files.items():
            print ('Checking model_type: ' + key + '...')
            vars = c.files()
            utils.softAssertion(len(vars), test_filecounts[key])
        print ('Done')

        print ('Testing no_duplicates=False files count...')
        test_filecounts = {
            'TCF': 14,
            'ECF': 4,
            'TGC': 23,
            'TBC': 4,
        }
        for key, c in self.tuflow.control_files.items():
            print ('Checking model_type: ' + key + '...')
            vars = c.files(no_duplicates=False)

# Path: ship/utils/fileloaders/fileloader.py
# class FileLoader(object):
#     def __init__(self):
#     def loadFile(self, filepath, arg_dict={}):
# 
# Path: ship/utils/filetools.py
# def getFile(file_path):
# def writeFile(contents, file_path, add_newline=True):
# def finalFolder(path):
# def setFinalFolder(path, folder_name):
# def getFileName(in_path, with_extension=False):
# def directory(in_path):
#     def __init__(self, path, root=None):
#     def _setupVars(self, path):
#     def finalFolder(self):
#     def setFinalFolder(self, folder_name):
#     def absolutePath(self, filename=None, relative_roots=[], normalize=True):
#     def directory(self):
#     def relativePath(self, with_extension=True, filename=None):
#     def filenameAndExtension(self):
#     def setAbsolutePath(self, absolute_path, keep_relative_root=False):
#     def setFilename(self, filename, has_extension=False, keep_extension=False):
#     def pathExists(self, ext=None):
# class PathHolder(object):
#     ABSOLUTE, RELATIVE, DIRECTORY, NAME, EXTENSION, NAME_AND_EXTENSION = range(6)
# 
# Path: integration_tests/utils.py
# def softAssertion(var, value, testEqual=True):
# def softAssertionIn(var, value, testIn=True):


# Path: integration_tests/test_tuflowload.py
import os
import copy
from ship.utils.fileloaders import fileloader
from ship.utils import filetools as ft
from integration_tests import utils

        print ('Testing se_vals variables count...')
        vars = self.tuflow.control_files['TGC'].variables(se_vals=se_vals)
        utils.softAssertion(len(vars), 6)
        print ('Done')

    
    def test_files(self):
        print ('Testing no_duplicates=True files count...')
        test_filecounts = {
            'TCF': 13,
            'ECF': 4,
            'TGC': 14,
            'TBC': 2,
        }
        for key, c in self.tuflow.control_files.items():
            print ('Checking model_type: ' + key + '...')
            vars = c.files()
            utils.softAssertion(len(vars), test_filecounts[key])
        print ('Done')

        print ('Testing no_duplicates=False files count...')
        test_filecounts = {
            'TCF': 14,
            'ECF': 4,
            'TGC': 23,
            'TBC': 4,
        }
        for key, c in self.tuflow.control_files.items():
            print ('Checking model_type: ' + key + '...')
            vars = c.files(no_duplicates=False)

            utils.softAssertion(len(vars), test_filecounts[key])