/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/blackbox/test_ignored.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-03-25 11:54:30 UTC
  • mfrom: (6855.4.10 more-bees)
  • Revision ID: breezy.the.bot@gmail.com-20180325115430-75xnlbrmzjoomd83
Add more bees. In particular:

* for file ids
* for revision ids
* for file contents in build_tree_contents()

Merged from https://code.launchpad.net/~jelmer/brz/more-bees/+merge/337919

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
        tree = self.make_branch_and_tree('.')
32
32
        self.build_tree(['foo.pyc'])
33
33
        # ensure that foo.pyc is ignored
34
 
        self.build_tree_contents([('.bzrignore', 'foo.pyc')])
 
34
        self.build_tree_contents([('.bzrignore', b'foo.pyc')])
35
35
        self.assertTrue(tree.is_ignored('foo.pyc'))
36
36
        # now add it and check the ui does not show it.
37
37
        tree.add('foo.pyc')
42
42
    def test_ignored_directory(self):
43
43
        """Test --directory option"""
44
44
        tree = self.make_branch_and_tree('a')
45
 
        self.build_tree_contents([('a/README', 'contents'),
46
 
                                  ('a/.bzrignore', 'README')])
 
45
        self.build_tree_contents([('a/README', b'contents'),
 
46
                                  ('a/.bzrignore', b'README')])
47
47
        out, err = self.run_bzr(['ignored', '--directory=a'])
48
48
        self.assertStartsWith(out, 'README')