<s> import unittest <EOL> from graphserver . util import TimeHelpers <EOL> class TestUtil ( unittest . TestCase ) : <EOL> def test_basic ( self ) : <EOL> assert TimeHelpers . localtime_to_unix ( <NUM_LIT> , <NUM_LIT:10> , <NUM_LIT:12> , <NUM_LIT:6> , <NUM_LIT:0> , <NUM_LIT:0> , "<STR_LIT>" ) == <NUM_LIT> <EOL> assert str ( TimeHelpers . unix_to_localtime ( <NUM_LIT> , "<STR_LIT>" ) ) == "<STR_LIT>" <EOL> assert TimeHelpers . unixtime_to_daytimes ( <NUM_LIT> , "<STR_LIT>" ) == ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) <EOL> assert str ( TimeHelpers . unix_to_localtime ( <NUM_LIT> , "<STR_LIT>" ) ) == "<STR_LIT>" <EOL> assert TimeHelpers . unixtime_to_daytimes ( <NUM_LIT> , "<STR_LIT>" ) == ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) <EOL> assert TimeHelpers . unix_time ( <NUM_LIT> , <NUM_LIT:8> , <NUM_LIT> , <NUM_LIT:12> , <NUM_LIT:0> , <NUM_LIT:0> , - <NUM_LIT:7> * <NUM_LIT> ) == <NUM_LIT> <EOL> assert TimeHelpers . localtime_to_unix ( <NUM_LIT> , <NUM_LIT:8> , <NUM_LIT> , <NUM_LIT:12> , <NUM_LIT:0> , <NUM_LIT:0> , "<STR_LIT>" ) == <NUM_LIT> <EOL> assert str ( TimeHelpers . unix_to_localtime ( <NUM_LIT> , "<STR_LIT>" ) ) == "<STR_LIT>" <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> tl = unittest . TestLoader ( ) <EOL> suite = tl . loadTestsFromTestCase ( TestUtil ) <EOL> unittest . TextTestRunner ( verbosity = <NUM_LIT:2> ) . run ( suite ) </s>
