Ejemplo n.º 1
0
    def setUp(self) -> None:
        super(FileRipper2Tests, self).setUp()

        self.file_service = FileService()
        file_service_factory = Mock(return_value=self.file_service)

        self.expected = {}
        self.file_service.process = Mock(return_value=self.expected)

        self.file_data[fc.FILE_TYPE] = fc.FIXED
        self.file_ripper = FileRipper(file_service_factory)
        self.file_definition = FileDefinition(self.file_data)
Ejemplo n.º 2
0
 def test_process_records_not_implemented(self):
     file_service = FileService()
     self.assertRaises(NotImplementedError,
                       file_service.process_file_records, [])