def test_send_invalid_apikey(self):
        invalid_api = api('INVALID_API_KEY', **self.options)
        result = invalid_api.send(
            self.EMAIL_ID,
            self.recipient,
            email_data=self.email_data)
        self.assertFail(result)
        self.assertEqual(result.status_code, 403)  # bad api key
Test send with invalid API key.
dataset/ETHPy150Open sendwithus/sendwithus_python/sendwithus/test/__init__.py/TestAPI.test_send_invalid_apikey