SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
tests.unittest_toolbox_file.File Class Reference
Inheritance diagram for tests.unittest_toolbox_file.File:
Inheritance graph
[legend]
Collaboration diagram for tests.unittest_toolbox_file.File:
Collaboration graph
[legend]

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...
 

Member Function Documentation

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)


The documentation for this class was generated from the following file: