/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/test_mapping.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:
282
282
class EscapeTest(TestCase):
283
283
 
284
284
    def test_escape_svn_path_none(self):
285
 
        self.assertEqual("", escape_svn_path(""))
 
285
        self.assertEqual("", escape_svn_path(u""))
286
286
 
287
287
    def test_escape_svn_path_simple(self):
288
 
        self.assertEqual("ab", escape_svn_path("ab"))
 
288
        self.assertEqual("ab", escape_svn_path(u"ab"))
289
289
 
290
290
    def test_escape_svn_path_percent(self):
291
 
        self.assertEqual("a%25b", escape_svn_path("a%b"))
 
291
        self.assertEqual("a%25b", escape_svn_path(u"a%b"))
292
292
 
293
293
    def test_escape_svn_path_whitespace(self):
294
 
        self.assertEqual("foobar%20", escape_svn_path("foobar "))
 
294
        self.assertEqual("foobar%20", escape_svn_path(u"foobar "))
295
295
 
296
296
    def test_escape_svn_path_slash(self):
297
 
        self.assertEqual("foobar%2F", escape_svn_path("foobar/"))
 
297
        self.assertEqual("foobar%2F", escape_svn_path(u"foobar/"))
298
298
 
299
299
    def test_escape_svn_path_special_char(self):
300
 
        self.assertEqual("foobar%8A", escape_svn_path("foobar\x8a"))
 
300
        self.assertEqual("foobar%8A", escape_svn_path(u"foobar\x8a"))
301
301
 
302
302
    def test_unescape_svn_path_slash(self):
303
 
        self.assertEqual("foobar/", unescape_svn_path("foobar%2F"))
 
303
        self.assertEqual("foobar/", unescape_svn_path(u"foobar%2F"))
304
304
 
305
305
    def test_unescape_svn_path_none(self):
306
 
        self.assertEqual("foobar", unescape_svn_path("foobar"))
 
306
        self.assertEqual("foobar", unescape_svn_path(u"foobar"))
307
307
 
308
308
    def test_unescape_svn_path_percent(self):
309
 
        self.assertEqual("foobar%b", unescape_svn_path("foobar%25b"))
 
309
        self.assertEqual("foobar%b", unescape_svn_path(u"foobar%25b"))
310
310
 
311
311
    def test_escape_svn_path_nordic(self):
312
 
        self.assertEqual("foobar%C3%A6", escape_svn_path(u"foobar\xe6".encode("utf-8")))
 
312
        self.assertEqual("foobar%C3%A6", escape_svn_path(u"foobar\xe6"))
313
313
 
314
314
 
315
315
class EstimateBzrAncestorsTests(TestCase):