def test_invalid_credentials(self, provider, credentials, expected_error_message, expected_validated_credentials):
     """
     Test validation with invalid transcript credentials.
     """
     error_message, validated_credentials = validate_transcript_credentials(provider, **credentials)
     # Assert the results.
     self.assertEqual(error_message, expected_error_message)
     self.assertDictEqual(validated_credentials, expected_validated_credentials)
 def test_invalid_credentials(self, provider, credentials, expected_error_message, expected_validated_credentials):
     """
     Test validation with invalid transcript credentials.
     """
     error_message, validated_credentials = validate_transcript_credentials(provider, **credentials)
     # Assert the results.
     self.assertEqual(error_message, expected_error_message)
     self.assertDictEqual(validated_credentials, expected_validated_credentials)