Files
2018-11-19 15:15:54 +00:00

12 lines
227 B
Python

import unittest
class T(unittest.TestCase):
def test_thing(self):
l = 10
s = [0]
with self.assertRaises(TypeError):
l[1000]
with self.assertRaises(IndexError):
s[1]