~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_repository/test_statistics.py

  • Committer: Samuel Bronson
  • Date: 2012-08-30 20:36:18 UTC
  • mto: (6015.57.3 2.4)
  • mto: This revision was merged to the branch mainline in revision 6558.
  • Revision ID: naesten@gmail.com-20120830203618-y2dzw91nqpvpgxvx
Update INSTALL for switch to Python 2.6 and up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        # now, in the same repository, asking for stats with/without the
39
39
        # committers flag generates the same date information.
40
40
        stats = tree.branch.repository.gather_stats(rev2, committers=False)
41
 
        # this test explicitly only checks for certain keys
42
 
        # in the dictionary, as implementations are allowed to
43
 
        # provide arbitrary data in other keys.
44
 
        self.assertEqual(stats['firstrev'], (1170491381.0, 0))
45
 
        self.assertEqual(stats['latestrev'], (1171491381.0, 0))
46
 
        self.assertEqual(stats['revisions'], 3)
 
41
        self.assertEqual({
 
42
            'firstrev': (1170491381.0, 0),
 
43
            'latestrev': (1171491381.0, 0),
 
44
            'revisions': 3,
 
45
            },
 
46
            stats)
47
47
        stats = tree.branch.repository.gather_stats(rev2, committers=True)
48
48
        self.assertEquals(2, stats["committers"])
49
49
        self.assertEquals((1170491381.0, 0), stats["firstrev"])