Lines Matching refs:cm
12 with self.assertRaises(SyntaxError) as cm:
15 self.assertRegex(str(cm.exception),
17 self.assertIn('2 != 3', cm.exception.text)
18 self.assertEqual(cm.exception.filename, '<FLUFL test>')
20 self.assertTrue(cm.exception.lineno, 2)
23 self.assertEqual(cm.exception.offset, 3)
28 with self.assertRaises(SyntaxError) as cm:
30 self.assertRegex(str(cm.exception), "invalid syntax")
31 self.assertIn('2 <> 3', cm.exception.text)
32 self.assertEqual(cm.exception.filename, '<FLUFL test>')
33 self.assertEqual(cm.exception.lineno, 1)
36 self.assertEqual(cm.exception.offset, 3)