# Path: seedbox/common/tools.py
# LOG = logging.getLogger(__name__)
# def verify_path(path_entry):
# def format_file_ext(filetypes):
# def make_opt_list(opts, group):
# 
# Path: seedbox/tests/test.py
# class ConfiguredBaseTestCase(BaseTestCase):
#     def setUp(self):
#     def tearDown(self):
#     def _make_dir(self, dirname):
#     def set_required_options(self):


import os
from seedbox.common import tools
from seedbox.tests import test
from __future__ import absolute_import



class ToolsTest(test.BaseTestCase):

    def test_verify_path(self):
        self.assertIsNotNone(tools.verify_path(os.getcwd()))
        self.assertIsNotNone(tools.verify_path(os.path.expanduser('~')))
        self.assertIsNotNone(tools.verify_path('.'))
        self.assertIsNotNone(tools.verify_path('/lib'))
        self.assertIsNone(tools.verify_path('library'))
        self.assertIsNone(tools.verify_path('missing'))
        self.assertIsNone(tools.verify_path('/to/be/found/'))
        self.assertIsNone(
            tools.verify_path(os.path.join(os.getcwd(),
                                           'junk-tmp-simple-duh.txt')))

    def test_format_file_ext(self):
        self.assertIsInstance(tools.format_file_ext([]), list)

# Path: seedbox/common/tools.py
# LOG = logging.getLogger(__name__)
# def verify_path(path_entry):
# def format_file_ext(filetypes):
# def make_opt_list(opts, group):
# 
# Path: seedbox/tests/test.py
# class ConfiguredBaseTestCase(BaseTestCase):
#     def setUp(self):
#     def tearDown(self):
#     def _make_dir(self, dirname):
#     def set_required_options(self):


# Path: seedbox/tests/common/test_tools.py
import os
from seedbox.common import tools
from seedbox.tests import test

from __future__ import absolute_import



class ToolsTest(test.BaseTestCase):

    def test_verify_path(self):
        self.assertIsNotNone(tools.verify_path(os.getcwd()))
        self.assertIsNotNone(tools.verify_path(os.path.expanduser('~')))
        self.assertIsNotNone(tools.verify_path('.'))
        self.assertIsNotNone(tools.verify_path('/lib'))
        self.assertIsNone(tools.verify_path('library'))
        self.assertIsNone(tools.verify_path('missing'))
        self.assertIsNone(tools.verify_path('/to/be/found/'))
        self.assertIsNone(
            tools.verify_path(os.path.join(os.getcwd(),
                                           'junk-tmp-simple-duh.txt')))

    def test_format_file_ext(self):
        self.assertIsInstance(tools.format_file_ext([]), list)

        self.assertEqual(len(tools.format_file_ext([])), 0)