~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2007-07-11 06:47:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2612.
  • Revision ID: mbp@sourcefrog.net-20070711064730-pwnhisgp2caf7nar
Don't show dots progress indicatiors in noninteractive mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
#
14
14
# You should have received a copy of the GNU General Public License
15
15
# along with this program; if not, write to the Free Software
16
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
16
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
17
 
18
18
 
19
19
"""Tests for the update command of bzr."""
21
21
import os
22
22
 
23
23
from bzrlib import branch, bzrdir
 
24
from bzrlib.tests import TestSkipped
24
25
from bzrlib.tests.blackbox import ExternalBase
25
26
from bzrlib.workingtree import WorkingTree
26
27
 
28
29
class TestUpdate(ExternalBase):
29
30
 
30
31
    def test_update_standalone_trivial(self):
31
 
        self.make_branch_and_tree('.')
 
32
        self.run_bzr("init")
32
33
        out, err = self.run_bzr('update')
33
34
        self.assertEqual('Tree is up to date at revision 0.\n', err)
34
35
        self.assertEqual('', out)
35
36
 
36
37
    def test_update_standalone_trivial_with_alias_up(self):
37
 
        self.make_branch_and_tree('.')
 
38
        self.run_bzr("init")
38
39
        out, err = self.run_bzr('up')
39
40
        self.assertEqual('Tree is up to date at revision 0.\n', err)
40
41
        self.assertEqual('', out)