~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_version.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-10-24 12:49:17 UTC
  • mfrom: (2935.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20071024124917-xb75eckyxx6vkrlg
Makefile fixes - hooks.html generation & allow python to be overridden (Ian Clatworthy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2004, 2005, 2006 by Canonical Ltd
 
1
# Copyright (C) 2004, 2005, 2006 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
17
17
 
18
18
"""Tests for versioning of bzrlib."""
19
19
 
20
 
from bzrlib import version
 
20
from bzrlib import version, workingtree
21
21
from bzrlib.tests import TestCase, TestSkipped
22
22
 
23
23
class TestBzrlibVersioning(TestCase):
32
32
        if src_tree is None:
33
33
            raise TestSkipped("bzr tests aren't run from a bzr working tree")
34
34
        else:
35
 
            source_version = src_tree.last_revision()
 
35
            # ensure that what we got was in fact a working tree instance.
 
36
            self.assertIsInstance(src_tree, workingtree.WorkingTree)