@defer.inlineCallbacks
    def run_test(self, content, datacoding = None, port = 1401):        
        yield self.connect('127.0.0.1', self.pbPort)
        yield self.prepareRoutingsAndStartConnector()
        
        # Set content
        self.params['content'] = content
        # Set datacoding
        if datacoding is None and self.params in 'coding':
            del self.params['coding']
        if datacoding is not None:
            self.params['coding'] = datacoding
        # Prepare baseurl
        baseurl = 'http://127.0.0.1:%s/send?%s' % (port, urllib.urlencode(self.params))
        
        # Send a MT
        # We should receive a msg id
        c = yield getPage(baseurl, method = self.method, postdata = self.postdata)
        msgStatus = c[:7]
        
        # Wait 2 seconds before stopping SmppClientConnectors
        exitDeferred = defer.Deferred()
        reactor.callLater(2, exitDeferred.callback, None)
        yield exitDeferred

        yield self.stopSmppClientConnectors()
        
        # Run tests
        self.assertEqual(msgStatus, 'Success')
dataset/ETHPy150Open jookies/jasmin/jasmin/routing/test/test_logging.py/LoggingTestCases.run_test/swapped operands of `in`