<s> import collections . abc <EOL> import errno <EOL> import socket <EOL> import sys <EOL> import unittest <EOL> from test import support <EOL> import xmlrpc . client as xmlrpclib <EOL> class CurrentTimeTest ( unittest . TestCase ) : <EOL> def test_current_time ( self ) : <EOL> self . skipTest ( "<STR_LIT>" ) <EOL> server = xmlrpclib . ServerProxy ( "<STR_LIT>" ) <EOL> try : <EOL> t0 = server . currentTime . getCurrentTime ( ) <EOL> except socket . error as e : <EOL> self . skipTest ( "<STR_LIT>" % e ) <EOL> return <EOL> t1 = xmlrpclib . DateTime ( ) <EOL> dt0 = xmlrpclib . _datetime_type ( t0 . value ) <EOL> dt1 = xmlrpclib . _datetime_type ( t1 . value ) <EOL> if dt0 > dt1 : <EOL> delta = dt0 - dt1 <EOL> else : <EOL> delta = dt1 - dt0 <EOL> self . assertTrue ( delta . days <= <NUM_LIT:1> ) <EOL> def test_python_builders ( self ) : <EOL> server = xmlrpclib . ServerProxy ( "<STR_LIT>" ) <EOL> try : <EOL> builders = server . getAllBuilders ( ) <EOL> except socket . error as e : <EOL> self . skipTest ( "<STR_LIT>" % e ) <EOL> return <EOL> self . addCleanup ( lambda : server ( '<STR_LIT>' ) ( ) ) <EOL> self . assertIsInstance ( builders , collections . abc . Sequence ) <EOL> self . assertTrue ( [ x for x in builders if "<STR_LIT>" in x ] , builders ) <EOL> def test_main ( ) : <EOL> support . requires ( "<STR_LIT>" ) <EOL> support . run_unittest ( CurrentTimeTest ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> test_main ( ) </s>
