~cjwatson/lazr.restful/test-fixes

« back to all changes in this revision

Viewing changes to src/lazr/restful/tests/test_error.py

  • Committer: Colin Watson
  • Date: 2018-09-28 15:34:25 UTC
  • Revision ID: cjwatson@canonical.com-20180928153425-v0vqr4ootjwutakz
Use the load_tests protocol.

Show diffs side-by-side

added added

removed removed

Lines of Context:
255
255
zcml_layer(FunctionalLayer)
256
256
 
257
257
 
258
 
def additional_tests():
 
258
def load_tests(loader, tests, pattern):
259
259
    """See `zope.testing.testrunner`."""
260
 
    suite = unittest.TestLoader().loadTestsFromName(__name__)
261
 
    suite.layer = FunctionalLayer
262
 
    return suite
 
260
    tests.layer = FunctionalLayer
 
261
    return tests