def test_getUserByName(self):
        req, _ = app.op['getUserByName'](username='mission')
        self.s(req).prepare()

        qk = [x for x in req.query if x[0] == 'simpleQK']
        self.assertTrue(len(qk) > 0)
        self.assertEqual(qk[0][1], '123456')
api key, passed by query
dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/tests/v1_2/test_auth.py/BasicAuthAndApiKeyTestCase.test_getUserByName