/breezy-svn/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy-svn/trunk

« back to all changes in this revision

Viewing changes to tests/layout/test_standard.py

  • Committer: Jelmer Vernooij
  • Date: 2018-06-07 16:52:47 UTC
  • Revision ID: jelmer@jelmer.uk-20180607165247-gmzhdunriv9snkwj
Fix two more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
219
219
class CustomLayoutTests(TestCase):
220
220
 
221
221
    def test_is_branch(self):
222
 
        x = CustomLayout(["foo/bar"])
223
 
        self.assertTrue(x.is_branch("foo/bar"))
224
 
        self.assertFalse(x.is_branch("foo"))
 
222
        x = CustomLayout([u"foo/bar"])
 
223
        self.assertTrue(x.is_branch(u"foo/bar"))
 
224
        self.assertFalse(x.is_branch(u"foo"))
225
225
 
226
226
    def test_is_branch_parent(self):
227
 
        x = CustomLayout(["foo/bar"])
228
 
        self.assertFalse(x.is_branch_parent("foo/bar"))
229
 
        self.assertTrue(x.is_branch_parent("foo"))
 
227
        x = CustomLayout([u"foo/bar"])
 
228
        self.assertFalse(x.is_branch_parent(u"foo/bar"))
 
229
        self.assertTrue(x.is_branch_parent(u"foo"))
230
230
 
231
231
    def test_get_branches(self):
232
 
        x = CustomLayout(["foo/bar"])
 
232
        x = CustomLayout([u"foo/bar"])
233
233
        class MockTransport(object):
234
234
 
235
235
            def __init__(self, available_paths):
247
247
            def __init__(self, available_paths):
248
248
                self.transport = MockTransport(available_paths)
249
249
 
250
 
        self.assertEquals([(None, "foo/bar", "bar", None, 3)],
251
 
            x.get_branches(MockRepository({"foo/bar": 3}), 3))
 
250
        self.assertEquals([(None, u"foo/bar", u"bar", None, 3)],
 
251
            x.get_branches(MockRepository({u"foo/bar": 3}), 3))