~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: Robert Collins
  • Date: 2010-04-08 04:34:03 UTC
  • mfrom: (5138 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5139.
  • Revision ID: robertc@robertcollins.net-20100408043403-56z0d07vdqrx7f3t
Update bugfix for 528114 to trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007 Canonical Ltd
 
1
# Copyright (C) 2007, 2009, 2010 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)
 
41
        self.failUnless(now - 5 < mtime_file_id < now + 5,
 
42
                        'now: %f, mtime_file_id: %f' % (now, mtime_file_id ))
42
43
        mtime_path = tree.get_file_mtime(file_id='one-id', path='one')
43
44
        self.assertEqual(mtime_file_id, mtime_path)