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

[merge] bzr.dev 2255, resolve conflicts, update copyrights

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# (C) 2005 Canonical Ltd
 
1
# Copyright (C) 2005 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
296
296
        self.assertEqual({'B':['A'],
297
297
                          'A':[]},
298
298
                         source.get_revision_graph('B'))
 
299
 
 
300
 
 
301
class TestReservedId(TestCase):
 
302
 
 
303
    def test_is_reserved_id(self):
 
304
        self.assertEqual(True, revision.is_reserved_id(NULL_REVISION))
 
305
        self.assertEqual(True, revision.is_reserved_id(
 
306
            revision.CURRENT_REVISION))
 
307
        self.assertEqual(True, revision.is_reserved_id('arch:'))
 
308
        self.assertEqual(False, revision.is_reserved_id('null'))
 
309
        self.assertEqual(False, revision.is_reserved_id(
 
310
            'arch:a@example.com/c--b--v--r'))
 
311
        self.assertEqual(False, revision.is_reserved_id(None))