def test_socketengine(self):
    path = os.path.dirname(__file__)
    adapter = os.path.join(path, 'socketadapter.py')
    eng = aei.get_engine('socket', adapter)
    self.assertIsInstance(eng, aei.SocketEngine)
    self._check_engine(eng)
    eng = aei.get_engine('socket', adapter, 'aei')
    self.assertIsInstance(eng, aei.SocketEngine)
    self._check_engine(eng)
    eng = aei.get_engine('2008cc', (adapter + ' --legacy'))
    self._check_engine(eng)
def test_socketengine(self):
    path = os.path.dirname(__file__)
    adapter = os.path.join(path, 'socketadapter.py')
    eng = aei.get_engine('socket', adapter)
    self.assertIsInstance(eng, aei.SocketEngine)
    self._check_engine(eng)
    eng = aei.get_engine('socket', adapter, 'aei')
    self.assertIsInstance(eng, aei.SocketEngine)
    self._check_engine(eng)
    eng = aei.get_engine('2008cc', (adapter + ' --legacy'))
    self._check_engine(eng)