Пример #1
0
 def test_delegate(self, validate_type, validate_value):
     lib._validate_target("reporter", "status", "type", "value", "force")
     validate_type.assert_called_once_with("reporter", "type")
     validate_value.assert_called_once_with("reporter", "status", "type",
                                            "value", "force")
Пример #2
0
 def test_delegate(self, validate_type, validate_value):
     lib._validate_target("reporter", "status", "type", "value", "force")
     validate_type.assert_called_once_with("reporter", "type")
     validate_value.assert_called_once_with(
         "reporter", "status", "type", "value", "force"
     )