def test_filter_traceback(self):
        tb1 = mock.Mock()
        tb2 = mock.Mock()
        tb1.tb_next = tb2
        tb2.tb_next = None
        ftb1 = post_mortem_debug.FilteredTraceback(tb1, tb2)
        for attr in ['lasti', 'lineno', 'frame']:
            attr_name = attr % 'tb_%s'
            self.assertEqual(getattr(tb1, attr_name, None),
                             getattr(ftb1, attr_name, None))
        self.assertIsNone(ftb1.tb_next)
dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/tests/test_post_mortem_debug.py/TestFilteredTraceback.test_filter_traceback/swapped operands of `%`