Example #1
0
    def test_default_coafile_deprecation(self, capture):
        system_coafile_path = os.path.abspath(
            os.path.join(os.path.dirname(os.path.realpath(__file__)),
                         'section_manager_test_files', 'child_dir'))

        get_system_coafile(system_coafile_path)

        capture.check(('root', 'WARNING',
                       'Filename deafult_coafile has been deprecated. '
                       'Please use system_coafile instead.'))
    def test_default_coafile_deprecation(self, capture):
        system_coafile_path = os.path.abspath(os.path.join(
            os.path.dirname(os.path.realpath(__file__)),
            'section_manager_test_files',
            'child_dir'))

        get_system_coafile(system_coafile_path)

        capture.check(
            ('root', 'WARNING', 'Filename deafult_coafile has been deprecated. '
             'Please use system_coafile instead.')
        )