~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: Danny van Heumen
  • Date: 2010-03-09 21:42:11 UTC
  • mto: (4634.139.5 2.0)
  • mto: This revision was merged to the branch mainline in revision 5160.
  • Revision ID: danny@dannyvanheumen.nl-20100309214211-iqh42x6qcikgd9p3
Reverted now-useless TODO list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007, 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2007 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
38
38
        # file, working trees return the on-disk time.
39
39
        mtime_file_id = tree.get_file_mtime(file_id='one-id')
40
40
        self.assertIsInstance(mtime_file_id, (float, int))
41
 
        self.failUnless(now - 5 < mtime_file_id < now + 5,
42
 
                        'now: %f, mtime_file_id: %f' % (now, mtime_file_id ))
 
41
        self.failUnless(now - 5 < mtime_file_id < now + 5)
43
42
        mtime_path = tree.get_file_mtime(file_id='one-id', path='one')
44
43
        self.assertEqual(mtime_file_id, mtime_path)