~ralsina/ubuntu-sso-client/fix_804569

« back to all changes in this revision

Viewing changes to ubuntu_sso/tests/test_account.py

  • Committer: Tarmac
  • Author(s): Rodney Dawes
  • Date: 2011-06-30 00:46:18 UTC
  • mfrom: (726.1.3 fix-urlerror)
  • Revision ID: tarmac-20110630004618-1xyprgjqbch0yif6
Don't put 3 slashes in file URL when appending full path

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
    """Fake the captcha generator."""
52
52
 
53
53
    def new(self):
54
 
        """Return a fix captcha)."""
55
 
        return {'image_url': 'file:///%s' % CAPTCHA_PATH,
 
54
        """Return a local fake captcha."""
 
55
        return {'image_url': 'file://%s' % CAPTCHA_PATH,
56
56
                'captcha_id': CAPTCHA_ID}
57
57
 
58
58