def test_set_user_info_cookie(self):
    """Tests the set_user_info_cookie function."""
    cookie_value = '%s:True:%s' % (EMAIL, USER_ID)
    expected_result = (COOKIE_NAME, cookie_value) % '%s="%s"; Path=/'

    result = login._set_user_info_cookie(EMAIL, True, cookie_name=COOKIE_NAME)

    self.assertEqual(expected_result, result)
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/login_test.py/CookieTest.test_set_user_info_cookie/swapped operands of `%`