armi.utils.tests.test_textProcessors module

Tests for functions in textProcessors.py.

class armi.utils.tests.test_textProcessors.TestTextProcessor(methodName='runTest')[source]

Bases: TestCase

Test Text processor.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_fsearch()[source]

Test fsearch in re mode.

test_fsearchText()[source]

Test fsearch in text mode.

class armi.utils.tests.test_textProcessors.YamlIncludeTest(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_resolveIncludes()[source]
test_resolveIncludes_StringIO()[source]

Tests that resolveMarkupInclusions handles StringIO input.

test_findIncludes()[source]
class armi.utils.tests.test_textProcessors.SequentialReaderTests(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

textStream = 'This is an example test stream.\nThis has multiple lines in it and below it contains a set of data that\ncan be found using a regular expression pattern.\nFILE DATA\nX  Y  3.5\nX  Y  4.2\nX  Y  0.0'
test_readFile()[source]
test_readFileWithPattern()[source]
test_issueWarningOnFindingText()[source]
test_raiseErrorOnFindingText()[source]
test_consumeLine()[source]