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

remove all trailing whitespace from bzr source

Show diffs side-by-side

added added

removed removed

Lines of Context:
297
297
        access = self.get_access()
298
298
        memos = access.add_raw_records([('key', 10)], '1234567890')
299
299
        self.assertEqual(['1234567890'], list(access.get_raw_records(memos)))
300
 
 
 
300
 
301
301
    def test_add_several_raw_records(self):
302
302
        """add_raw_records with many records and read some back."""
303
303
        access = self.get_access()
1524
1524
            [('parent',)])])
1525
1525
        # but neither should have added data:
1526
1526
        self.assertEqual([[], [], [], []], self.caught_entries)
1527
 
        
 
1527
 
1528
1528
    def test_add_version_different_dup(self):
1529
1529
        index = self.two_graph_index(deltas=True, catch_adds=True)
1530
1530
        # change options
1538
1538
        self.assertRaises(errors.KnitCorrupt, index.add_records,
1539
1539
            [(('tip',), 'fulltext,no-eol', (None, 0, 100), [])])
1540
1540
        self.assertEqual([], self.caught_entries)
1541
 
        
 
1541
 
1542
1542
    def test_add_versions_nodeltas(self):
1543
1543
        index = self.two_graph_index(catch_adds=True)
1544
1544
        index.add_records([
1586
1586
            [('parent',)])])
1587
1587
        # but neither should have added data.
1588
1588
        self.assertEqual([[], [], [], []], self.caught_entries)
1589
 
        
 
1589
 
1590
1590
    def test_add_versions_different_dup(self):
1591
1591
        index = self.two_graph_index(deltas=True, catch_adds=True)
1592
1592
        # change options
1704
1704
        index.add_records([(('tip',), 'fulltext,no-eol', (None, 0, 1000), [])])
1705
1705
        # but neither should have added data.
1706
1706
        self.assertEqual([[], [], [], []], self.caught_entries)
1707
 
        
 
1707
 
1708
1708
    def test_add_version_different_dup(self):
1709
1709
        index = self.two_graph_index(catch_adds=True)
1710
1710
        # change options
1718
1718
        self.assertRaises(errors.KnitCorrupt, index.add_records,
1719
1719
            [(('tip',), 'fulltext,no-eol', (None, 0, 100), [('parent',)])])
1720
1720
        self.assertEqual([], self.caught_entries)
1721
 
        
 
1721
 
1722
1722
    def test_add_versions(self):
1723
1723
        index = self.two_graph_index(catch_adds=True)
1724
1724
        index.add_records([
1756
1756
        index.add_records([(('tip',), 'fulltext,no-eol', (None, 0, 1000), [])])
1757
1757
        # but neither should have added data.
1758
1758
        self.assertEqual([[], [], [], []], self.caught_entries)
1759
 
        
 
1759
 
1760
1760
    def test_add_versions_different_dup(self):
1761
1761
        index = self.two_graph_index(catch_adds=True)
1762
1762
        # change options
1842
1842
 
1843
1843
    def test_check(self):
1844
1844
        # At the moment checking a stacked knit does implicitly check the
1845
 
        # fallback files.  
 
1845
        # fallback files.
1846
1846
        basis, test = self.get_basis_and_test_knit()
1847
1847
        test.check()
1848
1848
 
2083
2083
 
2084
2084
    def test_iter_lines_added_or_present_in_keys(self):
2085
2085
        # Lines from the basis are returned, and lines for a given key are only
2086
 
        # returned once. 
 
2086
        # returned once.
2087
2087
        key1 = ('foo1',)
2088
2088
        key2 = ('foo2',)
2089
2089
        # all sources are asked for keys: