mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 13:59:02 -04:00
Tests for UnspacedList.is_dirty()
This commit is contained in:
parent
6017a6cb6d
commit
3e9bf2f35f
1 changed files with 11 additions and 0 deletions
|
|
@ -231,6 +231,17 @@ class TestUnspacedList(unittest.TestCase):
|
|||
del ul3[2]
|
||||
self.assertEqual(ul3, ["some", "things", "why", "did", "whether"])
|
||||
|
||||
def test_is_dirty(self):
|
||||
self.assertEqual(False, self.ul2.is_dirty())
|
||||
ul3 = UnspacedList([])
|
||||
ul3.append(self.ul)
|
||||
self.assertEqual(False, self.ul.is_dirty())
|
||||
self.assertEqual(True, ul3.is_dirty())
|
||||
ul4 = UnspacedList([[1], [2, 3, 4]])
|
||||
self.assertEqual(False, ul4.is_dirty())
|
||||
ul4[1][2] = 5
|
||||
self.assertEqual(True, ul4.is_dirty())
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main() # pragma: no cover
|
||||
|
|
|
|||
Loading…
Reference in a new issue