def assertNotReading(testCase, reactor, transport):
 if IReactorFDSet.providedBy(reactor):
  testCase.assertNotIn(transport, reactor.getReaders())
 else:
  testCase.assertFalse(transport.reading)

def assertNotReading ( testCase , reactor , transport ) : if IReactorFDSet . providedBy ( reactor ) : testCase . assertNotIn ( transport , reactor . getReaders ( ) ) else : testCase . assertFalse ( transport . reading )
use the given test to assert that the given transport is i{not} actively reading in the given reactor .