This is the synonym portion of validating SynonymType.validation_regular_expression. Any new Synonym should first check the associated SynonymType.
This ticket is not responsible for checking if updated SynonymType's children are valid.
Tests:
validation_regular_expression="^[0-9]*$" only allows the creation of synonyms with numeric strings. "123" is valid; "123a" is not.
Below is a simple test that could be run in manage.py shell
closes #148
This is the synonym portion of validating
SynonymType.validation_regular_expression
. Any new Synonym should first check the associated SynonymType.This ticket is not responsible for checking if updated SynonymType's children are valid.
Tests:
validation_regular_expression="^[0-9]*$"
only allows the creation of synonyms with numeric strings."123"
is valid;"123a"
is not. Below is a simple test that could be run inmanage.py shell