summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc/test_automount_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipatests/test_xmlrpc/test_automount_plugin.py')
-rw-r--r--ipatests/test_xmlrpc/test_automount_plugin.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipatests/test_xmlrpc/test_automount_plugin.py b/ipatests/test_xmlrpc/test_automount_plugin.py
index 974a0f1f7..6694bf07c 100644
--- a/ipatests/test_xmlrpc/test_automount_plugin.py
+++ b/ipatests/test_xmlrpc/test_automount_plugin.py
@@ -87,6 +87,8 @@ class AutomountTest(XMLRPC_test):
break
else:
current_file.write(line + '\n')
+ assert current_file is not None, ('The input file does not contain any'
+ 'records of files to be opened.')
current_file.close()
self.failsafe_add(api.Object.automountlocation, self.locname)