Table Of Contents

Previous topic

omeroweb.feedback.templatetags package

Next topic

omeroweb.webadmin package

This Page

omeroweb.testlib package

Module contents

Library for Web integration tests

class omeroweb.testlib.IWebTest

Bases: omero.testlib.ITest

Abstract class derived from ITest which implements helpers for creating Django clients using django.test

import_image_with_metadata(client=None)

Imports tinyTest. This should be replaced.

classmethod new_django_client(name, password)
classmethod new_django_client_from_session_id(session_id)
classmethod setup_class()

Returns a logged in Django test client.

classmethod teardown_class()
omeroweb.testlib._csrf_delete_response(django_client, request_url, data, status_code=200, content_type=u'multipart/form-data; boundary=BoUnDaRyStRiNg')
omeroweb.testlib._csrf_delete_response_json(django_client, request_url, data, status_code=200)
omeroweb.testlib._csrf_get_response(django_client, request_url, query_string, status_code=200)
omeroweb.testlib._csrf_post_json(django_client, request_url, data, status_code=200, content_type='application/json')
omeroweb.testlib._csrf_post_response(django_client, request_url, data, status_code=200, content_type=u'multipart/form-data; boundary=BoUnDaRyStRiNg')
omeroweb.testlib._csrf_post_response_json(django_client, request_url, query_string, status_code=200)
omeroweb.testlib._csrf_put_json(django_client, request_url, data, status_code=200, content_type='application/json')
omeroweb.testlib._delete_response(django_client, request_url, data, status_code=403, content_type=u'multipart/form-data; boundary=BoUnDaRyStRiNg', **extra)
omeroweb.testlib._get_response(django_client, request_url, query_string, status_code=405)
omeroweb.testlib._get_response_json(django_client, request_url, query_string, status_code=200)
omeroweb.testlib._post_response(django_client, request_url, data, status_code=403, content_type=u'multipart/form-data; boundary=BoUnDaRyStRiNg', **extra)
omeroweb.testlib._post_response_json(django_client, request_url, data, status_code=403, content_type=u'multipart/form-data; boundary=BoUnDaRyStRiNg', **extra)
omeroweb.testlib._response(django_client, request_url, method, data, status_code=403, content_type=u'multipart/form-data; boundary=BoUnDaRyStRiNg', **extra)