<s> from concurrence import unittest , dispatch , TimeoutError , Tasklet <EOL> from concurrence . core import FileDescriptorEvent <EOL> from concurrence . io import Socket <EOL> class TestIO ( unittest . TestCase ) : <EOL> def testReadableWritableProperties ( self ) : <EOL> socket = Socket . new ( ) <EOL> writable = socket . writable <EOL> self . assertTrue ( isinstance ( writable , FileDescriptorEvent ) ) <EOL> readable = socket . readable <EOL> self . assertTrue ( isinstance ( readable , FileDescriptorEvent ) ) <EOL> socket . readable = None <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( timeout = <NUM_LIT> ) </s>
