(e.g. string or integer) will be callable by directly passing it that internal simple data type value instead of first wrapping that value in an object of type X and then passing that wrapper object instead. Unit tests in this module make sure suds recognizes an operation's input parameters in different scenarios as expected. It does not deal with binding given argument values to an operation's input parameters or constructing an actual binding specific web service operation invocation request, although they may use such functionality as tools indicating that suds recognized an operation's input parameters correctly. """ if __name__ == "__main__": import __init__ __init__.runUsingPyTest(globals()) import suds import tests import pytest class Element: """Represents elements in our XSD map test data.""" def __init__(self, name): self.name = name class XSDType: """Unwrapped parameter XSD type test data."""
# # You should have received a copy of the GNU Lesser General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # written by: Jurko Gospodnetić ( [email protected] ) """ Suds Python library DocumentStore unit tests. Implemented using the 'pytest' testing framework. """ if __name__ == "__main__": import __init__ __init__.runUsingPyTest(globals()) import suds import suds.store import pytest def test_accessing_DocumentStore_content(): content1 = suds.byte_str("one") content2 = suds.byte_str("two") content1_1 = suds.byte_str("one one") store = suds.store.DocumentStore({"1":content1}) assert len(store) == 2