/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/test_knit.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-12 01:41:38 UTC
  • mto: (7143.16.20 even-more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7175.
  • Revision ID: jelmer@jelmer.uk-20181112014138-3b0zyx91cu3wdq3k
More PEP8 fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
939
939
        mapper = ConstantMapper(name)
940
940
        self.overrideAttr(knit, '_load_data', self._load_data)
941
941
 
942
 
        def allow_writes(): return 'w' in mode
 
942
        def allow_writes():
 
943
            return 'w' in mode
943
944
        return _KndxIndex(transport, mapper, lambda: None, allow_writes, lambda: True)
944
945
 
945
946
    def test_create_file(self):
2239
2240
        basis, test = self.get_basis_and_test_knit()
2240
2241
        key = (b'foo',)
2241
2242
        key_basis = (b'bar',)
2242
 
        key_missing = (b'missing',)
2243
2243
        test.add_lines(key, (), [b'foo\n'])
2244
2244
        details = test.annotate(key)
2245
2245
        self.assertEqual([(key, b'foo\n')], details)
2486
2486
    def test_insert_record_stream(self):
2487
2487
        # records are inserted as normal; insert_record_stream builds on
2488
2488
        # add_lines, so a smoke test should be all that's needed:
2489
 
        key = (b'foo',)
2490
2489
        key_basis = (b'bar',)
2491
2490
        key_delta = (b'zaphod',)
2492
2491
        basis, test = self.get_basis_and_test_knit()
2555
2554
    def test_add_mpdiffs(self):
2556
2555
        # records are inserted as normal; add_mpdiff builds on
2557
2556
        # add_lines, so a smoke test should be all that's needed:
2558
 
        key = (b'foo',)
2559
2557
        key_basis = (b'bar',)
2560
2558
        key_delta = (b'zaphod',)
2561
2559
        basis, test = self.get_basis_and_test_knit()