def test_readonly_data():
 with pytest.raises(ValueError) as excinfo:
  configdata.DATA['general'].setv('temp', 'ignore-case', 'true', 'true')
 assert (str(excinfo.value) == 'Trying to modify a read-only config!')

def test_readonly_data ( ) : with pytest . raises ( ValueError ) as excinfo : configdata . DATA [ 'general' ] . setv ( 'temp' , 'ignore-case' , 'true' , 'true' ) assert ( str ( excinfo . value ) == 'Trying to modify a read-only config!' )
make sure data is readonly .