def test_statistic_diff_format(self):
    (snapshot, snapshot2) = create_snapshots()
    stats = snapshot2.compare_to(snapshot, 'lineno')
    stat = stats[0]
    self.assertEqual(str(stat), 'a.py:5: size=5002 B (+5000 B), count=2 (+1), average=2501 B')
def test_statistic_diff_format(self):
    (snapshot, snapshot2) = create_snapshots()
    stats = snapshot2.compare_to(snapshot, 'lineno')
    stat = stats[0]
    self.assertEqual(str(stat), 'a.py:5: size=5002 B (+5000 B), count=2 (+1), average=2501 B')