# Path: pyfusion/test/tests.py
# class PfTestBase(object):
#     """Base class for generated sql and non-sql test cases."""
#     pass


from pyfusion.test.tests import PfTestBase
        from pyfusion.conf import allowed_section_types
        from pyfusion import config
        from pyfusion.conf.exceptions import DisallowedSectionType, ConfigSectionSyntaxError
        from pyfusion.conf import PyfusionConfigParser
        from ConfigParser import ConfigParser
        from pyfusion import config
        from pyfusion.conf.utils import import_setting
        from pyfusion.acquisition.FakeData.acq import FakeDataAcquisition
        from pyfusion.conf.utils import import_from_str
        from pyfusion.acquisition.FakeData.acq import FakeDataAcquisition
        from pyfusion.conf.utils import kwarg_config_handler
        from pyfusion import config
        from pyfusion import config
        from pyfusion.conf.exceptions import UnknownVariableTypeError
        from pyfusion import config, conf
        for kwarg_item in test_kwargs.items():
            self.assertTrue(kwarg_item in output_vars.items())
        # make sure that config vars not in test_kwargs are included in kwargs
        for config_var in config.pf_options('Device', 'TestDevice'):
            if not config_var in test_kwargs.keys():
                self.assertEqual(output_vars[config_var],
                                 config.pf_get('Device',
                                               'TestDevice', config_var))


class CheckVariableTypes(PfTestBase):
    """Check that config parser returns correct types for settings."""
    def test_return_correct_type(self):
        # a setting of type float:
        sample_freq = config.pf_get('Diagnostic', 'test_types', 'sample_freq')
        self.assertTrue(type(sample_freq) == float)
        # a setting of type int:
        n_samples = config.pf_get('Diagnostic', 'test_types', 'n_samples')
        self.assertTrue(type(n_samples) == int)
        # a setting of type boolean:
        test_bool = config.pf_get('Diagnostic', 'test_types', 'testboolean')
        self.assertTrue(type(test_bool) == bool)
        # test unknown type raises exception
        self.assertRaises(UnknownVariableTypeError,
                          config.pf_get,
                          'Diagnostic',
                          'test_types',
                          'unknowntype')
        


# Path: pyfusion/test/tests.py
# class PfTestBase(object):
#     """Base class for generated sql and non-sql test cases."""
#     pass


# Path: pyfusion/conf/tests.py
from pyfusion.test.tests import PfTestBase
        from pyfusion.conf import allowed_section_types
        from pyfusion import config
        from pyfusion.conf.exceptions import DisallowedSectionType, ConfigSectionSyntaxError
        from pyfusion.conf import PyfusionConfigParser
        from ConfigParser import ConfigParser
        from pyfusion import config
        from pyfusion.conf.utils import import_setting
        from pyfusion.acquisition.FakeData.acq import FakeDataAcquisition
        from pyfusion.conf.utils import import_from_str
        from pyfusion.acquisition.FakeData.acq import FakeDataAcquisition
        from pyfusion.conf.utils import kwarg_config_handler
        from pyfusion import config
        from pyfusion import config
        from pyfusion.conf.exceptions import UnknownVariableTypeError
        from pyfusion import config, conf

        for kwarg_item in test_kwargs.items():
            self.assertTrue(kwarg_item in output_vars.items())
        # make sure that config vars not in test_kwargs are included in kwargs
        for config_var in config.pf_options('Device', 'TestDevice'):
            if not config_var in test_kwargs.keys():
                self.assertEqual(output_vars[config_var],
                                 config.pf_get('Device',
                                               'TestDevice', config_var))


class CheckVariableTypes(PfTestBase):
    """Check that config parser returns correct types for settings."""
    def test_return_correct_type(self):
        # a setting of type float:
        sample_freq = config.pf_get('Diagnostic', 'test_types', 'sample_freq')
        self.assertTrue(type(sample_freq) == float)
        # a setting of type int:
        n_samples = config.pf_get('Diagnostic', 'test_types', 'n_samples')
        self.assertTrue(type(n_samples) == int)
        # a setting of type boolean:
        test_bool = config.pf_get('Diagnostic', 'test_types', 'testboolean')
        self.assertTrue(type(test_bool) == bool)
        # test unknown type raises exception
        self.assertRaises(UnknownVariableTypeError,
                          config.pf_get,
                          'Diagnostic',
                          'test_types',
                          'unknowntype')
        


class CheckConfigUtils(PfTestBase):