Beispiel #1
0
    def test_result_file_exists(self):
        engine = FlatFileEngine(self.config_dict)

        with patch('os.path.exists') as patched_exists:
            patched_exists.return_value = True

            self.assertEqual(engine.result(True), self.config_dict['path'])