Ejemplo n.º 1
0
    def test_create_object(self):
        create_object = self.soap_client.create_object

        requestor = SoapRequestor(self.soap_client)
        result = requestor.create_object('TypeName', 'arg', kw='kw')

        create_object.assert_called_once_with('TypeName', 'arg', kw='kw')
        self.assertEqual(create_object.return_value, result)
    def test_create_object(self):
        create_object = self.soap_client.create_object

        requestor = SoapRequestor(self.soap_client)
        result = requestor.create_object("TypeName", "arg", kw="kw")

        create_object.assert_called_once_with("TypeName", "arg", kw="kw")
        self.assertEqual(create_object.return_value, result)