def test_slices(self):
    (snapshot, snapshot2) = create_snapshots()
    self.assertEqual(snapshot.traces[:2], (snapshot.traces[0], snapshot.traces[1]))
    traceback = snapshot.traces[0].traceback
    self.assertEqual(traceback[:2], (traceback[0], traceback[1]))
def test_slices(self):
    (snapshot, snapshot2) = create_snapshots()
    self.assertEqual(snapshot.traces[:2], (snapshot.traces[0], snapshot.traces[1]))
    traceback = snapshot.traces[0].traceback
    self.assertEqual(traceback[:2], (traceback[0], traceback[1]))