Example #1
0
def test_prompt_message():
    dv = DataValidation(ValidationType.LIST, formula1='"Dog,Cat,Fish"')
    dv.set_prompt_message('Please enter a value')
    eq_(dv.generate_attributes_map()['promptTitle'], 'Validation Prompt')
    eq_(dv.generate_attributes_map()['prompt'], 'Please enter a value')
def test_prompt_message():
    dv = DataValidation(ValidationType.LIST, formula1='"Dog,Cat,Fish"')
    dv.set_prompt_message('Please enter a value')
    assert dv.generate_attributes_map()['promptTitle'] == 'Validation Prompt'
    assert dv.generate_attributes_map()['prompt'] == 'Please enter a value'