~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testrevisionnamespaces.py

  • Committer: Martin Pool
  • Date: 2005-07-11 06:41:00 UTC
  • mfrom: (unknown (missing))
  • Revision ID: mbp@sourcefrog.net-20050711064100-c2eb947e0212f487
- patch from john to search for matching commits

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
 
18
 
from bzrlib.selftest import TestCaseInTempDir
 
18
from bzrlib.selftest import InTempDir, TestBase
19
19
 
20
 
class TestRevisionNamespaces(TestCaseInTempDir):
21
 
    def test_revision_namespaces(self):
22
 
        """Functional tests for hashcache"""
 
20
class TestRevisionNamespaces(InTempDir):
 
21
    """Functional tests for hashcache"""
 
22
    def runTest(self):
23
23
        from bzrlib.errors import BzrError
24
24
        from bzrlib.branch import Branch
 
25
        import os
 
26
        import time
25
27
 
26
28
        b = Branch('.', init=True)
27
29
 
38
40
        self.assertEquals(b.get_revision_info('date:+today'), (1, 'a@r-0-1'))
39
41
 
40
42
        self.assertEquals(b.get_revision_info('last:1'), (3, 'a@r-0-3'))
 
43
 
 
44
TEST_CLASSES = [
 
45
    TestRevisionNamespaces
 
46
    ]