Public Member Functions | |
def | test_get_modif_datetime |
Test get_modif_datetime routine. More... | |
def | test_headcmp |
Test headcmp routine. More... | |
def | test_footcmp |
Test footcmp routine. More... | |
def tests.unittest_toolbox_file.File.test_footcmp | ( | self | ) |
Test footcmp routine.
Create 2 tmp file with identical last N lines and last N+1-th line differs.
Should return True for footcmp(n=N) and False for footcmp(n=N+1)
def tests.unittest_toolbox_file.File.test_get_modif_datetime | ( | self | ) |
Test get_modif_datetime routine.
Create a tmp file and compare its modification date with today date.
Success if less than 1 s between 2 dates.
def tests.unittest_toolbox_file.File.test_headcmp | ( | self | ) |
Test headcmp routine.
Create 2 tmp file with identical first N lines and N+1-th line differs.
Should return True for headcmp(n=N) and False for headcmp(n=N+1)