~elopio/+junk/cloudspaces

« back to all changes in this revision

Viewing changes to src/cloudspacesclient/ubuntuone.py

  • Committer: Leo Arias
  • Date: 2013-11-19 01:16:58 UTC
  • Revision ID: leo.arias@canonical.com-20131119011658-gk6hdpkds0vvg3ap
The full name in Ubuntu One can't be more than 30 chars.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        """
35
35
        if unique_id is None:
36
36
            unique_id = str(uuid.uuid1())
37
 
        full_name = 'Test user {}'.format(unique_id)
 
37
        # The full name in Ubuntu One can't be more than 30 characters.
 
38
        full_name = 'Test user {}'.format(unique_id)[:30]
38
39
        email = 'cloudspacestest+{}@example.com'.format(unique_id)
39
40
        password = 'Hola123*'
40
41
        return cls(full_name, email, password)