def CheckToken(self, field_update_dict, valid):
parsed_token = self.GetSampleBody()<EOL>parsed_token.update(field_update_dict)<EOL>result = users_id_token._verify_parsed_token(<EOL>parsed_token, users_id_token._ISSUERS, self._SAMPLE_AUDIENCES, self._SAMPLE_ALLOWED_CLIENT_IDS)<EOL>self.assertEqual(valid, result)<EOL>
Update the sample token and check if it's valid or invalid.

        This updates the body of our sample token with the fields in
        field_update_dict, then passes it to _verify_parsed_token.  The result must
        match the "valid" parameter.

        Args:
          field_update_dict: A dict of fields to update in the sample body.
          valid: A boolean, compared against the result from _verify_parsed_token.