~ubuntu-branches/ubuntu/precise/ubuntuone-control-panel/precise

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/tests/test_web_client.py

  • Committer: Package Import Robot
  • Author(s): Natalia Bidart (nessita)
  • Date: 2012-03-21 14:11:29 UTC
  • mto: This revision was merged to the branch mainline in revision 45.
  • Revision ID: package-import@ubuntu.com-20120321141129-c444j5xs1pf8rsfv
Tags: upstream-2.99.91
ImportĀ upstreamĀ versionĀ 2.99.91

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    WebClient,
30
30
    WebClientError,
31
31
)
 
32
from ubuntuone.platform.credentials import APP_NAME
32
33
 
33
34
 
34
35
SAMPLE_KEY = "result"
104
105
        self.wc = WebClient(sample_get_credentials, base_url=self.base_iri)
105
106
        self.addCleanup(self.wc.shutdown)
106
107
 
 
108
    def test_correct_app_name(self):
 
109
        """Assert that the wc uses the correct appname."""
 
110
        self.assertEqual(APP_NAME, self.wc.wc.appname)
 
111
 
107
112
    @defer.inlineCallbacks
108
113
    def test_get_url(self):
109
114
        """A method is successfully called in the mock webservice."""