mirror of
https://github.com/certbot/certbot.git
synced 2026-03-23 19:03:33 -04:00
Make assertions about index policing
This commit is contained in:
parent
6a938f2ee7
commit
880cb03191
1 changed files with 4 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue