Beispiel #1
0
 def test__build_wsdl_objects_dict_fail(self, log):
     simple = self.Simple()
     _build_wsdl_objects(None, simple, {"test": {"two": 2}})
     log.assert_called_with(
         'Failed to define wsdl_object_type for child object. [test]',
         level='ERROR')
Beispiel #2
0
 def test__build_wsdl_objects_list(self):
     simple = self.Simple()
     _build_wsdl_objects(None, simple, {"test": [1, 2]})
     assert simple.test == [1, 2]
Beispiel #3
0
 def test__build_wsdl_objects_list_dict(self, wsdl):
     simple = self.Simple()
     wsdl.return_value = {"two": 2}
     _build_wsdl_objects(None, simple, {"test": [{"two": 2}]})
     assert simple.test == [{"two": 2}]
Beispiel #4
0
 def test__build_wsdl_objects_simple(self):
     simple = self.Simple()
     _build_wsdl_objects(None, simple, {"test": 2})
     assert simple.test == 2