コード例 #1
0
 def test_returns_remining_operations(self, make_unique_intervals):
     make_unique_intervals.side_effect = (
         lambda report_processor, operations: operations
     )
     self.assertEqual(
         operations.get_remaining_defaults(
             report_processor=None,
             operation_list=[{"name": "monitor"}],
             default_operation_list=[{"name": "monitor"}, {"name": "start"}]
         ),
         [{"name": "start"}]
     )
コード例 #2
0
 def test_returns_remining_operations(self, make_unique_intervals):
     make_unique_intervals.side_effect = (
         lambda report_processor, operations: operations
     )
     self.assertEqual(
         operations.get_remaining_defaults(
             report_processor=None,
             operation_list=[{"name": "monitor"}],
             default_operation_list=[{"name": "monitor"}, {"name": "start"}]
         ),
         [{"name": "start"}]
     )