add more test coverage for templates
@@ -14,13 +14,23 @@ def test_add_option():
""" Test the add_option function """
instance = Template()
instance.add_option('foo', 'bar')
+ instance.add_option('foo', 'bar')
+ instance.add_option('bad', 'x')
+
+def test_del_option():
+ """ Test the del_option function """
+ instance = Template()
+ instance.add_option('foo', 'bar')
+ instance.del_option('foo', 'bar')
+ instance.del_option('foo', 'bar')
def test_del_section():
""" Test the del_section function """
instance = Template()
+ instance.add_option('foo', 'bar')
instance.del_section('foo')
-def test_del_option():
- """ Test the del_option function """
+def test_set_option():
+ """ Test the set_option function """
instance = Template()
- instance.del_option('foo', 'bar')
+ instance.set_option('bad', 'x', 'x')
