/usr/share/pyshared/txaws/server/tests/test_method.py is in python-txaws 0.2.3-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | from twisted.trial.unittest import TestCase
from txaws.server.method import Method
class MethodTestCase(TestCase):
def setUp(self):
super(MethodTestCase, self).setUp()
self.method = Method()
def test_defaults(self):
"""
By default a L{Method} applies to all API versions and handles a
single action matching its class name.
"""
self.assertIdentical(None, self.method.actions)
self.assertIdentical(None, self.method.versions)
|