/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/git/tests/test_unpeel_map.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-02 02:35:46 UTC
  • mfrom: (7309 work)
  • mto: This revision was merged to the branch mainline in revision 7319.
  • Revision ID: jelmer@jelmer.uk-20190602023546-lqco868tnv26d8ow
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
    def test_new(self):
35
35
        m = UnpeelMap()
36
 
        self.assertIs(None, m.peel_tag("ab"* 20))
 
36
        self.assertIs(None, m.peel_tag("ab" * 20))
37
37
 
38
38
    def test_load(self):
39
39
        f = BytesIO(
42
42
        m = UnpeelMap()
43
43
        m.load(f)
44
44
        self.assertEqual(b"0123456789012345678901234567890123456789",
45
 
            m.peel_tag(b"aa"*20))
 
45
                         m.peel_tag(b"aa" * 20))
46
46
 
47
47
    def test_update(self):
48
48
        m = UnpeelMap()
49
49
        m.update({
50
 
           b"0123456789012345678901234567890123456789": set([b"aa" * 20]),
51
 
           })
 
50
            b"0123456789012345678901234567890123456789": set([b"aa" * 20]),
 
51
            })
52
52
        self.assertEqual(b"0123456789012345678901234567890123456789",
53
 
            m.peel_tag(b"aa"*20))
 
53
                         m.peel_tag(b"aa" * 20))