tests.namespace_tests module#
Tests for the Namespace class.
- class tests.namespace_tests.TestNamespaceCollections(*args, **kwargs)[source]#
Bases:
DisableSiteMixin
,TestCase
Test how Namespace interact when in collections.
- abstract_class = False#
- class tests.namespace_tests.TestNamespaceObject(*args, **kwargs)[source]#
Bases:
DisableSiteMixin
,TestCase
Test cases for Namespace class.
- abstract_class = False#
- class tests.namespace_tests.TestNamespacesDictGetItem(*args, **kwargs)[source]#
Bases:
DisableSiteMixin
,TestCase
Test NamespacesDict.__getitem__.
- EMPTYTEXT_RE = '\\s*'#
- VALIDNUMBER_RE = '-?(0|[1-9]\\d*)'#
- abstract_class = False#
- class tests.namespace_tests.TestNamespacesDictLookupName(*args, **kwargs)[source]#
Bases:
DisableSiteMixin
,TestCase
Test NamespacesDict.lookup_name and lookup_normalized_name.
- abstract_class = False#
- tests = {4: ['project', 'PROJECT', 'Project', 'Project:'], 5: ['project talk', 'PROJECT TALK', 'Project talk', 'Project Talk:', 'project_talk', 'PROJECT_TALK', 'Project_talk', 'Project_Talk:']}#