Commit 32d59d1f authored by CharlieC's avatar CharlieC
Browse files

Correct test indentation

--HG--
branch : 3.0
parent 61833026959a
......@@ -15,6 +15,7 @@ def DataValidation():
class TestDataValidation:
def test_ctor(self, DataValidation):
dv = DataValidation()
xml = tostring(dv.to_tree())
......@@ -33,14 +34,15 @@ class TestDataValidation:
dv = DataValidation.from_tree(node)
assert dv == DataValidation()
def test_list_validation(DataValidation):
dv = DataValidation(type="list", formula1='"Dog,Cat,Fish"')
assert dv.formula1, '"Dog,Cat == Fish"'
dv_dict = dict(dv)
assert dv_dict['type'] == 'list'
assert dv_dict['allowBlank'] == '0'
assert dv_dict['showErrorMessage'] == '1'
assert dv_dict['showInputMessage'] == '1'
def test_list_validation(self, DataValidation):
dv = DataValidation(type="list", formula1='"Dog,Cat,Fish"')
assert dv.formula1, '"Dog,Cat == Fish"'
dv_dict = dict(dv)
assert dv_dict['type'] == 'list'
assert dv_dict['allowBlank'] == '0'
assert dv_dict['showErrorMessage'] == '1'
assert dv_dict['showInputMessage'] == '1'
def test_hide_drop_down(self, DataValidation):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment