/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/launchpad/test_account.py

  • Committer: Jelmer Vernooij
  • Date: 2019-03-04 00:16:27 UTC
  • mfrom: (7293 work)
  • mto: This revision was merged to the branch mainline in revision 7318.
  • Revision ID: jelmer@jelmer.uk-20190304001627-v6u7o6pf97tukhek
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        # Test formatting of NoRegisteredSSHKeys exception
54
54
        error = account.NoRegisteredSSHKeys(user='test-user')
55
55
        self.assertEqualDiff('The user test-user has not registered any '
56
 
            'SSH keys with Launchpad.\n'
57
 
            'See <https://launchpad.net/people/+me>',
58
 
            str(error))
 
56
                             'SSH keys with Launchpad.\n'
 
57
                             'See <https://launchpad.net/people/+me>',
 
58
                             str(error))
59
59
 
60
60
    def test_set_lp_login_updates_authentication_conf(self):
61
61
        self.assertIs(None, account._get_auth_user())
93
93
        e = self.assertRaises(account.MismatchedUsernames,
94
94
                              account.get_lp_login)
95
95
        self.assertEqual('breezy.conf and authentication.conf disagree about'
96
 
            ' launchpad account name.  Please re-run launchpad-login.', str(e))
 
96
                         ' launchpad account name.  Please re-run launchpad-login.', str(e))
97
97
 
98
98
 
99
99
class CheckAccountTests(TestCaseWithMemoryTransport):