# Path: PyChat/client/gui/helper/helperFunc.py
# def find_file(dire, fName):
#     """
#     Generates the complete path of a file
#     returns the complete path
#     """
#     path = os.path.join(os.path.dirname(dire), fName)
#     return path


import unittest
import os
from PyChat.client.gui.helper.helperFunc import find_file
#!/usr/bin/env python2

##
# PyChat
# https://github.com/leosartaj/PyChat.git
#
# Copyright (c) 2014 Sartaj Singh
# Licensed under the MIT license.
##


class TestfindFile(unittest.TestCase):
    """
    tests the find_file function in helperFunc module
    """
    def setUp(self):
        self.test_file = 'test_file'
        with open(self.test_file, 'w'): # create test file
            pass

    def test_check_file(self):

# Path: PyChat/client/gui/helper/helperFunc.py
# def find_file(dire, fName):
#     """
#     Generates the complete path of a file
#     returns the complete path
#     """
#     path = os.path.join(os.path.dirname(dire), fName)
#     return path


# Path: PyChat/client/gui/helper/tests/tests_helperFunc/test_find_file.py
import unittest
import os
from PyChat.client.gui.helper.helperFunc import find_file

#!/usr/bin/env python2

##
# PyChat
# https://github.com/leosartaj/PyChat.git
#
# Copyright (c) 2014 Sartaj Singh
# Licensed under the MIT license.
##


class TestfindFile(unittest.TestCase):
    """
    tests the find_file function in helperFunc module
    """
    def setUp(self):
        self.test_file = 'test_file'
        with open(self.test_file, 'w'): # create test file
            pass

    def test_check_file(self):

        path = find_file('.', self.test_file)