~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Packman
  • Date: 2012-01-05 09:50:04 UTC
  • mfrom: (6424 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6426.
  • Revision ID: martin.packman@canonical.com-20120105095004-mia9xb7y0efmto0v
Merge bzr.dev to resolve conflicts in bzrlib.builtins

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
 
        self.assertEqual({
42
 
            'firstrev': (1170491381.0, 0),
43
 
            'latestrev': (1171491381.0, 0),
44
 
            'revisions': 3,
45
 
            },
46
 
            stats)
 
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)
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"])