/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: John Arbash Meinel
  • Date: 2008-03-14 16:32:01 UTC
  • mfrom: (3277 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3280.
  • Revision ID: john@arbash-meinel.com-20080314163201-33r5errgr41hzaci
[merge] bzr.dev 3277, cleanup NEWS indentation.

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