testing.unit.test_statistics module

class testing.unit.test_statistics.StatsObjTest(methodName='runTest')[source]

Bases: UnitTestCase

Test StatsObj class

setUp()[source]

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

set_obj(s)[source]

Set values of s’s statistics

testAverage()[source]

Test making an average statsobj

test_byte_summary()[source]

Test conversion of bytes to strings like 7.23MB

test_get_stats()[source]

Test reading and writing stat objects

test_get_stats_string()[source]

Test conversion of stat object into string

test_init_stats()[source]

Test setting stat object from string

test_line_string()[source]

Test conversion to a single line

test_write_path()[source]

Test reading and writing of statistics object