Diff of /blob_event_burst.py [ebb7dd] .. [59dfee] Maximize Restore

  Switch to side-by-side view

--- a/blob_event_burst.py
+++ b/blob_event_burst.py
@@ -192,8 +192,18 @@
     @patch.object(DocumentPageBurstProcessor, 'copy_to')
     def test_fallback_to_copy_mode(self, copy_to_mock, run_command_mock):
 
-        pm = Mock(**{'get_property.return_value': None, })
-        sd = Mock(**{'default_as_dict.return_value': {'txt': 'text/plain', }})
+        pm = Mock(
+            **{
+                'get_property.return_value': None,
+                'get_property_string_value.return_value': None,
+            }
+        )
+        sd = Mock(
+            **{
+                'default_as_dict.return_value': {'txt': 'text/plain', },
+                'get_property_string_value.return_value': None,
+            }
+        )
 
         ctx = AdministrativeContext(orm=Mock(),
                                     server_defaults_manager=sd,
@@ -226,7 +236,12 @@
     @patch.object(DocumentPageBurstProcessor, 'copy_to')
     def test_fallback_to_copy_mode_not(self, copy_to_mock, run_command_mock):
 
-        pm = Mock(**{'get_property.return_value': None, })
+        pm = Mock(
+            **{
+                'get_property.return_value': None,
+                 'get_property_string_value.return_value': None,
+            }
+        )
         sd = Mock(**{'default_as_dict.return_value': {'txt': 'text/plain', }})
 
         ctx = AdministrativeContext(orm=Mock(),
@@ -277,8 +292,13 @@
         This test simulates the PDF bursting of a three page document
         '''
 
-        pm = Mock(**{'get_property.return_value': None,
-                     'get_properties.return_value': [], })
+        pm = Mock(
+            **{
+                'get_property.return_value': None,
+                'get_properties.return_value': [],
+                'get_property_string_value.return_value': None,
+            }
+        )
         sd = Mock(**{
             'default_as_dict.return_value': {'pdf': 'application/pdf', }
         })
@@ -352,8 +372,13 @@
         in the PdfReader
         '''
 
-        pm = Mock(**{'get_property.return_value': None,
-                     'get_properties.return_value': [], })
+        pm = Mock(
+            **{
+                'get_property.return_value': None,
+                'get_properties.return_value': [],
+                 'get_property_string_value.return_value': None,
+            }
+        )
         sd = Mock(
             **{'default_as_dict.return_value': {'pdf': 'application/pdf', }}
         )
@@ -424,8 +449,13 @@
         This test simulates the PDF bursting of a PDF Form document.
         '''
 
-        pm = Mock(**{'get_property.return_value': None,
-                     'get_properties.return_value': [], })
+        pm = Mock(
+            **{
+                'get_property.return_value': None,
+                'get_properties.return_value': [],
+                'get_property_string_value.return_value': None,
+            }
+        )
         sd = Mock(**{
             'default_as_dict.return_value': {'pdf': 'application/pdf', }
         })
@@ -491,8 +521,13 @@
         This test simulates the PDF bursting of a three page document
         '''
 
-        pm = Mock(**{'get_property.return_value': None,
-                     'get_properties.return_value': [], })
+        pm = Mock(
+            **{
+                'get_property.return_value': None,
+                'get_properties.return_value': [],
+                 'get_property_string_value.return_value': None,
+            }
+        )
         sd = Mock(
             **{'default_as_dict.return_value': {'pdf': 'application/pdf', }}
         )
@@ -543,10 +578,17 @@
         This test simulates the PDF bursting of a three page document
         '''
 
-        pm = Mock(**{'get_property.return_value': None,
-                     'get_properties.return_value': [], })
+        pm = Mock(
+            **{
+                'get_property.return_value': None,
+                'get_properties.return_value': [],
+                'get_property_string_value.return_value': None,
+            }
+        )
         sd = Mock(
-            **{'default_as_dict.return_value': {'pdf': 'application/pdf', }}
+            **{
+                'default_as_dict.return_value': {'pdf': 'application/pdf', },
+            }
         )
         lm = Mock()