~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2006-09-21 21:06:31 UTC
  • mto: This revision was merged to the branch mainline in revision 2035.
  • Revision ID: john@arbash-meinel.com-20060921210631-c6ce799f90431a13
Fix bug #3631, allow 'bzr inventory filename'

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
                                ]
56
56
                          )
57
57
        self.assertInventoryEqual(expected, '--show-ids')
 
58
 
 
59
    def test_inventory_specific_files(self):
 
60
        self.assertInventoryEqual('a\n', 'a')
 
61
        self.assertInventoryEqual('b\nb/c\n', 'b', 'b/c')
 
62
 
 
63
    def test_mixed(self):
 
64
        """Test that we get expected results when mixing parameters"""
 
65
        a_line = '%-50s %s\n' % ('a', 'a-id')
 
66
        b_line = '%-50s %s\n' % ('b', 'b-id')
 
67
        c_line = '%-50s %s\n' % ('b/c', 'c-id')
 
68
 
 
69
        self.assertInventoryEqual('', '--kind', 'directory', 'a')
 
70
        self.assertInventoryEqual(a_line + c_line, '--kind', 'file',
 
71
                                                   '--show-ids')
 
72
        self.assertInventoryEqual(c_line, '--kind', 'file', '--show-ids',
 
73
                                          'b', 'b/c')