'Authenticates the user on the dev_appserver.'

def _DevAppServerAuthenticate(self):

    credentials = self.auth_function()
    value = self._CreateDevAppServerCookieData(credentials[0], True)
    self.extra_headers['Cookie'] = ('dev_appserver_login="%s";    Path=/;' % value)
