Skip to content

rgmih/wstest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wstest

You may use this compact framework to create web-service unit tests quickly and easily.

Example

Less words, more examples.

from wstest.core import WSTest, Request
import os

def test_soap():
    wst = WSTest()
    
    response = wst.on(
        'http://www.w3schools.com/webservices/tempconvert.asmx',
        headers = {'Content-Type':'application/soap+xml'}
    ).post(wst.file('test_core.soap12').using(celsius=-20.5))
    
    assert response.at('/tmp:CelsiusToFahrenheitResponse/tmp:CelsiusToFahrenheitResult',{
        'tmp': 'http://tempuri.org/'
    }) == '-4.9'

About

Lightweight web-service unit testing framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages