test package

Submodules

test.test_datastore_mongo module

class test.test_datastore_mongo.TestMongoDataStore(methodName='runTest')

Bases: unittest.case.TestCase

setUp() None

Hook method for setting up the test fixture before exercising it.

classmethod setUpClass() None
classmethod tearDownClass() None
test_load_forms_empty()
test_wrong_collection_cls()
class test.test_datastore_mongo.TestMongoDataStoreWithEntry(methodName='runTest')

Bases: unittest.case.TestCase

setUp() None

Hook method for setting up the test fixture before exercising it.

classmethod setUpClass() None
classmethod tearDownClass() None
test_deprecate_form()
test_load_forms()
test_load_login_form_by_id()
test_load_login_form_by_name()
test_load_nonexisting_login_form_by_name()
test_search_form()

test.test_form_manager module

class test.test_form_manager.TestFormManagerInit(methodName='runTest')

Bases: unittest.case.TestCase

Test Initialization of Form Manager

test_init_wrong_data_store()
test_init_wrong_form_parser()
class test.test_form_manager.TestFormManagerInsert(methodName='runTest')

Bases: unittest.case.TestCase

classmethod setUp() None
classmethod setUpClass() None
classmethod tearDownClass() None
test_init_without_initial_load()
test_insert_form()
class test.test_form_manager.TestFormManagerManyForms(methodName='runTest')

Bases: unittest.case.TestCase

setUp() None

Hook method for setting up the test fixture before exercising it.

classmethod setUpClass() None
test_many_forms()
class test.test_form_manager.TestFromFormManagerFetch(methodName='runTest')

Bases: unittest.case.TestCase

setUp() None

Hook method for setting up the test fixture before exercising it.

classmethod setUpClass() None
test_cached_form_names()
test_load_form_by_name_expired_cache()

Manually reduce expiration time

test_load_form_by_name_from_cache()
test_load_form_by_nonexisting_name()
test_update_form_cache()

test.test_json_parser module

class test.test_json_parser.TestJsonFormParser(methodName='runTest')

Bases: unittest.case.TestCase

The following test check the helper functions of parser json.

classmethod setUpClass() None
test_create_field_validation()
test_create_selectfield_choice()
test_form_with_fieldList()

Create form which contains a FieldList

test_form_with_fieldList_and_FormField()
test_form_with_formfield()
test_obj_validators_widgets()

Test validator and widget parsing with and without attributes

test_simple_field_attributes_in_field()
test_simple_field_attributes_in_kwargs()
test_simple_field_attributes_in_property()
test_tuple_diff_length()

Test conversion of tuples

test.test_main module

test.test_main.suite()

test.test_utils module

test.test_utils.get_login_form()
test.test_utils.get_many_login_forms(num=3)

Module contents