~cjwatson/lazr.restful/exported-interfaces-honour-all

« back to all changes in this revision

Viewing changes to src/lazr/restful/testing/helpers.py

  • Committer: Colin Watson
  • Date: 2016-02-17 01:07:21 UTC
  • Revision ID: cjwatson@canonical.com-20160217010721-4d5fqqml5q97ss59
Switch zope.interface, zope.component, and lazr.delegates users from class advice to class decorators.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
from types import ModuleType
3
3
 
4
4
from zope.configuration import xmlconfig
5
 
from zope.interface import implements
 
5
from zope.interface import implementer
6
6
 
7
7
from lazr.restful.interfaces import IWebServiceConfiguration
8
8
from lazr.restful.metazcml import webservice_sanity_checks
63
63
    return unicode_string.encode("ascii", "backslashreplace")
64
64
 
65
65
 
 
66
@implementer(IWebServiceConfiguration)
66
67
class TestWebServiceConfiguration:
67
 
    implements(IWebServiceConfiguration)
68
68
    view_permission = "lazr.View"
69
69
    active_versions = ["beta", "1.0"]
70
70
    last_version_with_mutator_named_operations = "1.0"