def test_trace_format(self):
    (snapshot, snapshot2) = create_snapshots()
    trace = snapshot.traces[0]
    self.assertEqual(str(trace), 'a.py:2: 10 B')
    traceback = trace.traceback
    self.assertEqual(str(traceback), 'a.py:2')
    frame = traceback[0]
    self.assertEqual(str(frame), 'a.py:2')
def test_trace_format(self):
    (snapshot, snapshot2) = create_snapshots()
    trace = snapshot.traces[0]
    self.assertEqual(str(trace), 'a.py:2: 10 B')
    traceback = trace.traceback
    self.assertEqual(str(traceback), 'a.py:2')
    frame = traceback[0]
    self.assertEqual(str(frame), 'a.py:2')