onadata.apps.sms_support.tests package¶
Submodules¶
onadata.apps.sms_support.tests.test_base_sms module¶
TestBaseSMS - base class for sms_support test cases.
- class onadata.apps.sms_support.tests.test_base_sms.TestBaseSMS(methodName='runTest')¶
Bases:
TestBase
TestBaseSMS - base class for sms_support test cases.
- setUp()¶
Hook method for setting up the test fixture before exercising it.
- setup_form(allow_sms=True)¶
Helper method to setup an SMS form.
- onadata.apps.sms_support.tests.test_base_sms.random_identity()¶
Returns some random digits and ascii_letters as string of length 8 used as an identity.
- onadata.apps.sms_support.tests.test_base_sms.response_for_text(username, text, id_string=None, identity=None)¶
Processes an SMS
text
and returns the results.
onadata.apps.sms_support.tests.test_notallowed module¶
- class onadata.apps.sms_support.tests.test_notallowed.TestNotAllowed(methodName='runTest')¶
Bases:
TestBaseSMS
- setUp()¶
Hook method for setting up the test fixture before exercising it.
- test_allow_sms()¶
- test_refused_not_enabled()¶
onadata.apps.sms_support.tests.test_parser module¶
- class onadata.apps.sms_support.tests.test_parser.TestParser(methodName='runTest')¶
Bases:
TestBaseSMS
- setUp()¶
Hook method for setting up the test fixture before exercising it.
- test_api_error()¶
- test_invalid_group()¶
- test_invalid_syntax()¶
- test_invalid_type()¶
- test_missing_required_field()¶
- test_refused_with_keyword()¶
- test_sucessful_submission()¶