I have a function
read_value_from_text()
that reads parameters from a config file and returns a dictionary in this form
{ key1 : value1, key2 : value2, ... , keyn : valuen }
I want to write a unit test that checks if all values (value1,...,valuen) are numeric ( float or integer). Can someone suggest an efficient way to do this?
Aucun commentaire:
Enregistrer un commentaire