~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_pull.py

  • Committer: Patch Queue Manager
  • Date: 2016-04-21 04:10:52 UTC
  • mfrom: (6616.1.1 fix-en-user-guide)
  • Revision ID: pqm@pqm.ubuntu.com-20160421041052-clcye7ns1qcl2n7w
(richard-wilbur) Ensure build of English use guide always uses English text
 even when user's locale specifies a different language. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2012 Canonical Ltd
 
1
# Copyright (C) 2005-2012, 2016 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
540
540
        to_tree.branch.tags.set_tag("mytag", "anotherrevid")
541
541
        revid1 = to_tree.commit('my commit')
542
542
        out = self.run_bzr(['pull', '-d', 'to', 'from'], retcode=1)
543
 
        self.assertEquals(out,
 
543
        self.assertEqual(out,
544
544
            ('No revisions to pull.\nConflicting tags:\n    mytag\n', ''))
545
545
        out = self.run_bzr(['pull', '-d', 'to', '--overwrite-tags', 'from'])
546
 
        self.assertEquals(out, ('1 tag(s) updated.\n', ''))
 
546
        self.assertEqual(out, ('1 tag(s) updated.\n', ''))
547
547
 
548
 
        self.assertEquals(to_tree.branch.tags.lookup_tag('mytag'),
 
548
        self.assertEqual(to_tree.branch.tags.lookup_tag('mytag'),
549
549
                          'somerevid')
550
 
        self.assertEquals(to_tree.branch.last_revision(), revid1)
 
550
        self.assertEqual(to_tree.branch.last_revision(), revid1)
551
551
 
552
552
    def test_pull_tag_overwrite(self):
553
553
        """pulling tags with --overwrite only reports changed tags."""