1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

Make assertions about index policing

This commit is contained in:
Peter Eckersley
2016-06-24 18:50:18 -07:00
parent 6a938f2ee7
commit 880cb03191

View File

@@ -219,6 +219,10 @@ class TestUnspacedList(unittest.TestCase):
self.assertEqual(ul3, ["zither", ["zather", "zest"]])
self.assertEqual(ul3.spaced, [self.a[0], "zither", " ", l])
def test_get(self):
self.assertRaises(IndexError, self.ul2.__getitem__, 2)
self.assertRaises(IndexError, self.ul2.__getitem__, -3)
def test_rawlists(self):
ul3 = copy.deepcopy(self.ul)
ul3.insert(0, "some")