~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Merge in bzr.dev 3801, resolve NEWS

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