~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree.py

  • Committer: John Arbash Meinel
  • Date: 2009-06-19 17:53:37 UTC
  • mto: This revision was merged to the branch mainline in revision 4466.
  • Revision ID: john@arbash-meinel.com-20090619175337-uozt3bntdd48lh4z
Update time_graph to use X:1 ratios rather than 0.xxx ratios.
It is just easier to track now that the new code is much faster.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2010 Canonical Ltd
 
1
# Copyright (C) 2005, 2006 Canonical Ltd
2
2
# Authors:  Robert Collins <robert.collins@canonical.com>
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
22
22
    bzrdir,
23
23
    conflicts,
24
24
    errors,
25
 
    transport,
26
25
    workingtree,
27
26
    )
28
27
from bzrlib.branch import Branch
30
29
from bzrlib.lockdir import LockDir
31
30
from bzrlib.mutabletree import needs_tree_write_lock
32
31
from bzrlib.tests import TestCase, TestCaseWithTransport, TestSkipped
 
32
from bzrlib.transport import get_transport
33
33
from bzrlib.workingtree import (
34
34
    TreeEntry,
35
35
    TreeDirectory,
138
138
            dir.create_repository()
139
139
            dir.create_branch()
140
140
            format.initialize(dir)
141
 
            t = transport.get_transport(url)
 
141
            t = get_transport(url)
142
142
            found_format = workingtree.WorkingTreeFormat.find_format(dir)
143
143
            self.failUnless(isinstance(found_format, format.__class__))
144
144
        check_format(workingtree.WorkingTreeFormat3(), "bar")
303
303
        self.assertEqual(
304
304
            'method_with_tree_write_lock',
305
305
            tree.method_with_tree_write_lock.__name__)
306
 
        self.assertDocstring(
 
306
        self.assertEqual(
307
307
            "A lock_tree_write decorated method that returns its arguments.",
308
 
            tree.method_with_tree_write_lock)
 
308
            tree.method_with_tree_write_lock.__doc__)
309
309
        args = (1, 2, 3)
310
310
        kwargs = {'a':'b'}
311
311
        result = tree.method_with_tree_write_lock(1,2,3, a='b')