<filename>ws-tests/test_study_get_bad_outformat.py
#!/usr/bin/env python
import sys, os
from opentreetesting import test_http_json_method, config
DOMAIN = config('host', 'apihost')
SUBMIT_URI = DOMAIN + '/phylesystem/v1/study/10'
data = {'output_nexml2json':'x0.0.0'}
if test_http_json_method(SUBMIT_URI, 'GET', data=data, expected_status=400):
    sys.exit(0)
sys.exit(1)

<filename>ws-tests/test_study_get_bad_outformat.py
#!/usr/bin/env python
import sys, os
from opentreetesting import test_http_json_method, config
DOMAIN = config('host', 'apihost')
SUBMIT_URI = DOMAIN + '/phylesystem/v1/study/10'
data = {'output_nexml2json':'x0.0.0'}
if test_http_json_method(SUBMIT_URI, 'GET', data=data, expected_status=400):
    sys.exit(0)
sys.exit(1)

#!/usr/bin/env python