def test_get_user_username(self):
        """Test get_user with username"""
        user = self.factory.make_user()
        user2 = self.gw.get_user(username=user.username, session_id='QWERTY')
        self.assertEqual(user.id, user2.id)
        self.assertEqual(user.username, user2.username)
        self.assertEqual(user2._gateway.session_id, 'QWERTY')