TestGeneralTail

class tests.general.test_general.TestGeneralTail(methodName='runTest')[source]

Test cases for io_tail() and tail()

__init__(methodName='runTest')

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.

Methods

Methods

test_io_tail_500_lines_300()

Test io_tail() by tailing 300 lines of a 500 line file, then comparing each line from generated chunks against the original lines written to the file.

test_tail_10_lines_10()

Test tail() works when nlines is equal to the amount of lines in the file.

test_tail_10_lines_3()

Test tail() by comparing the last 3 lines of a 10 line testing file.

test_tail_10_lines_5()

Test tail() by comparing the first and last tailed 5 lines of a 10 line testing file.

test_tail_500_lines_20()

Test tail() with a larger test file.

test_tail_500_lines_300()

Test tail() with a larger line count.

Attributes

Attributes