# 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

        headers = self.dat.unitsByType('header')
        comments = self.dat.unitsByType('comment')
        refhs = self.dat.unitsByType('refh')
        rivers = self.dat.unitsByType('river')
        bridges = self.dat.unitsByCategory('bridge')
        junctions = self.dat.unitsByType('junction')
        spills = self.dat.unitsByType('spill')
        htbdys = self.dat.unitsByType('htbdy')
        unknowns = self.dat.unitsByType('unknown')
        ics = self.dat.unitsByType('initial_conditions')
        gis = self.dat.unitsByType('gis_info')
        
        utils.softAssertion(len(headers), 1)
        utils.softAssertion(len(comments), 1)
        utils.softAssertion(len(refhs), 1)
        utils.softAssertion(len(rivers), 6)
        utils.softAssertion(len(bridges), 2)
        utils.softAssertion(len(junctions), 2)
        utils.softAssertion(len(spills), 1)
        utils.softAssertion(len(htbdys), 1)
        utils.softAssertion(len(unknowns), 1)
        utils.softAssertion(len(ics), 1)
        utils.softAssertion(len(gis), 1)
        
        print ('Done')
    
    def test_icsSetup(self):
        print ('Test ics setup...')
        ics = self.dat.unit('initial_conditions')

# 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_datload.py
import os
import copy
from ship.utils.fileloaders import fileloader
from ship.utils import filetools as ft
from integration_tests import utils


        headers = self.dat.unitsByType('header')
        comments = self.dat.unitsByType('comment')
        refhs = self.dat.unitsByType('refh')
        rivers = self.dat.unitsByType('river')
        bridges = self.dat.unitsByCategory('bridge')
        junctions = self.dat.unitsByType('junction')
        spills = self.dat.unitsByType('spill')
        htbdys = self.dat.unitsByType('htbdy')
        unknowns = self.dat.unitsByType('unknown')
        ics = self.dat.unitsByType('initial_conditions')
        gis = self.dat.unitsByType('gis_info')
        
        utils.softAssertion(len(headers), 1)
        utils.softAssertion(len(comments), 1)
        utils.softAssertion(len(refhs), 1)
        utils.softAssertion(len(rivers), 6)
        utils.softAssertion(len(bridges), 2)
        utils.softAssertion(len(junctions), 2)
        utils.softAssertion(len(spills), 1)
        utils.softAssertion(len(htbdys), 1)
        utils.softAssertion(len(unknowns), 1)
        utils.softAssertion(len(ics), 1)
        utils.softAssertion(len(gis), 1)
        
        print ('Done')
    
    def test_icsSetup(self):
        print ('Test ics setup...')
        ics = self.dat.unit('initial_conditions')

        utils.softAssertion(len(ics.row_data['main']._collection[0].data_collection), 14)