Exemple #1
0
 def test_close_metadata_file_handle_no_fast_forward(self):
     context = FastForwardXmlFileContext(os.path.join(
         self.working_dir, 'test.xml'),
                                         self.tag,
                                         self.attributes,
                                         checksum_type=TYPE_SHA1)
     context._open_metadata_file_handle()
     context._close_metadata_file_handle()
     self.assertTrue(context._is_closed(context.metadata_file_handle))
 def test_close_metadata_file_handle_no_fast_forward(self):
     context = FastForwardXmlFileContext(os.path.join(self.working_dir, 'test.xml'),
                                         self.tag, self.attributes, checksum_type=TYPE_SHA1)
     context._open_metadata_file_handle()
     context._close_metadata_file_handle()
     self.assertTrue(context._is_closed(context.metadata_file_handle))