~awsome-core/awsome/trunk

« back to all changes in this revision

Viewing changes to awsome/tests/test_wsdl_store.py

  • Committer: Martin Packman
  • Date: 2012-05-29 13:39:15 UTC
  • Revision ID: martin.packman@canonical.com-20120529133915-c0quar08ymns0fds
Fix dodgy indirect usage of twisted.web.resource in wsdl store tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
    reactor,
13
13
    )
14
14
from twisted.web import (
 
15
    resource,
15
16
    server,
16
17
    static,
17
18
    )
63
64
class WebServingStoreTests(tests.TestCase):
64
65
    """Base for tests that need to fetch WSDL files from a web server"""
65
66
 
66
 
    class AmazonBucketList(static.resource.Resource):
 
67
    class AmazonBucketList(resource.Resource):
67
68
        """Resource representing WSDL files and index on Amazon's servers"""
68
69
 
69
70
        def __init__(self, wsdl_dir):
70
 
            static.resource.Resource.__init__(self)
 
71
            resource.Resource.__init__(self)
71
72
            self._files = []
72
73
            for f in os.listdir(wsdl_dir):
73
74
                if f.endswith(".wsdl"):