예제 #1
0
    def setUp(self):
        super(TestCase, self).setUp()
        with mock.patch('surveilr.config.defaults_file') as defaults_file:
            with mock.patch('surveilr.config.config_files') as config_files:
                config_files.return_value = self.config_files()
                defaults_file.return_value = self.defaults_file()

                config.load_default_config()
예제 #2
0
 def tearDown(self):
     config.load_default_config()