~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-04 18:51:39 UTC
  • mfrom: (2961.1.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20071104185139-kaio3sneodg2kp71
Authentication ring implementation (read-only)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
from bzrlib.tests.blackbox import ExternalBase
22
22
 
23
 
 
24
23
class TestUnknowns(ExternalBase):
25
24
 
26
25
    def test_unknowns(self):
34
33
        self.build_tree_contents([('a', 'contents of a\n')])
35
34
        self.assertEquals(self.run_bzr('unknowns')[0], 'a\n')
36
35
 
37
 
        # multiple unknown files, including one with a space in its name
38
 
        self.build_tree(['b', 'c', 'd e'])
39
 
        self.assertEquals(self.run_bzr('unknowns')[0], 'a\nb\nc\n"d e"\n')
 
36
        # multiple unknown files
 
37
        self.build_tree(['b', 'c'])
 
38
        self.assertEquals(self.run_bzr('unknowns')[0], 'a\nb\nc\n')
40
39
 
41
40
        # after add, file no longer shown
42
 
        tree.add(['a', 'd e'])
 
41
        tree.add('a')
43
42
        self.assertEquals(self.run_bzr('unknowns')[0], 'b\nc\n')
44
43
 
45
44
        # after all added, none shown