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

  • Committer: Andrew Bennetts
  • Date: 2008-03-12 20:13:07 UTC
  • mfrom: (3267 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3756.
  • Revision ID: andrew.bennetts@canonical.com-20080312201307-ngd5bynt2nvhnlb7
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from bzrlib.tests import TestCase
22
22
from bzrlib.tsort import topo_sort, TopoSorter, MergeSorter, merge_sort
23
23
from bzrlib.errors import GraphCycleError
 
24
from bzrlib.revision import NULL_REVISION
24
25
 
25
26
 
26
27
class TopoSortTests(TestCase):
112
113
        # sorting of an emptygraph does not error
113
114
        self.assertSortAndIterate({}, None, [], False)
114
115
        self.assertSortAndIterate({}, None, [], True)
 
116
        self.assertSortAndIterate({}, NULL_REVISION, [], False)
 
117
        self.assertSortAndIterate({}, NULL_REVISION, [], True)
115
118
 
116
119
    def test_merge_sort_not_empty_no_tip(self):
117
120
        # merge sorting of a branch starting with None should result