~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2008-10-30 00:55:00 UTC
  • mto: (3815.2.5 prepare-1.9)
  • mto: This revision was merged to the branch mainline in revision 3811.
  • Revision ID: john@arbash-meinel.com-20081030005500-r5cej1cxflqhs3io
Switch so that we are using a simple timestamp as the first action.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 Canonical Ltd
2
 
# -*- coding: utf-8 -*-
3
 
# vim: encoding=utf-8
 
1
# Copyright (C) 2005, 2008 Canonical Ltd
4
2
#
5
3
# This program is free software; you can redistribute it and/or modify
6
4
# it under the terms of the GNU General Public License as published by
28
26
 
29
27
class TestMissing(TestCaseWithTransport):
30
28
 
 
29
    def test_missing_quiet(self):
 
30
        # <https://bugs.launchpad.net/bzr/+bug/284748>
 
31
        # create a source branch
 
32
        #
 
33
        # XXX: This still needs a test that missing is quiet when there are
 
34
        # missing revisions.
 
35
        a_tree = self.make_branch_and_tree('.')
 
36
        self.build_tree_contents([('a', 'initial\n')])
 
37
        a_tree.add('a')
 
38
        a_tree.commit(message='initial')
 
39
 
 
40
        out, err = self.run_bzr('missing -q .')
 
41
        self.assertEqual('', out)
 
42
        self.assertEqual('', err)
 
43
 
31
44
    def test_missing(self):
32
45
        missing = "You are missing 1 revision(s):"
33
46
 
142
155
 
143
156
        # check last location
144
157
        lines, err = self.run_bzr('missing', working_dir='../b')
145
 
        self.assertEquals('Using last location: %s\n'
 
158
        self.assertEquals('Using saved parent location: %s\n'
146
159
                          'Branches are up to date.\n' % location,
147
160
                          lines)
148
161
        self.assertEquals('', err)