~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_tree/test_get_file_mtime.py

  • Committer: Martin von Gagern
  • Date: 2011-06-01 12:53:56 UTC
  • mto: This revision was merged to the branch mainline in revision 6009.
  • Revision ID: martin.vgagern@gmx.net-20110601125356-lwozv2vecea6hxfz
Change from no_decorate to classify as name for the argument.

The command line switch remains as --no-classify, to keep backwards
compatibility.  Users are free to include --no-classify in an alias, and
still use --classify to change back.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import time
20
20
 
21
 
from bzrlib import errors
22
 
 
23
21
from bzrlib.tests.per_tree import TestCaseWithTree
24
22
 
25
23
 
44
42
                        'now: %f, mtime_file_id: %f' % (now, mtime_file_id ))
45
43
        mtime_path = tree.get_file_mtime(file_id='one-id', path='one')
46
44
        self.assertEqual(mtime_file_id, mtime_path)
47
 
 
48
 
    def test_nonexistant(self):
49
 
        tree = self.get_basic_tree()
50
 
        tree.lock_read()
51
 
        self.addCleanup(tree.unlock)
52
 
        self.assertRaises(errors.NoSuchId,
53
 
            tree.get_file_mtime, file_id='unexistant')