diff options
Diffstat (limited to 'pyuno/qa/pytests/testcollections_misc.py')
-rw-r--r-- | pyuno/qa/pytests/testcollections_misc.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pyuno/qa/pytests/testcollections_misc.py b/pyuno/qa/pytests/testcollections_misc.py index 04dcf595931a..1dba098eeccd 100644 --- a/pyuno/qa/pytests/testcollections_misc.py +++ b/pyuno/qa/pytests/testcollections_misc.py @@ -32,6 +32,8 @@ class TestMisc(CollectionsTestBase): for val in doc.UIConfigurationManager: pass + doc.close(True) + # Tests syntax: # if val in itr: ... # Test value presence # For: @@ -44,6 +46,8 @@ class TestMisc(CollectionsTestBase): with self.assertRaises(TypeError): foo = "bar" in doc.UIConfigurationManager + doc.close(True) + # Tests syntax: # num = len(obj) # Number of elements # For: @@ -56,6 +60,8 @@ class TestMisc(CollectionsTestBase): with self.assertRaises(TypeError): len(doc.UIConfigurationManager) + doc.close(True) + # Tests syntax: # val = obj[0] # Access by index # For: @@ -68,6 +74,8 @@ class TestMisc(CollectionsTestBase): with self.assertRaises(TypeError): doc.UIConfigurationManager[0] + doc.close(True) + if __name__ == '__main__': unittest.main() |