Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
sendgrid / unit / test_parse.py
Size: Mime:
import unittest

from sendgrid.helpers.inbound.config import Config
from sendgrid.helpers.inbound.app import app


class UnitTests(unittest.TestCase):

    def setUp(self):
        self.config = Config()
        self.tester = app.test_client(self)

    def test_parse(self):
        response = self.tester.post(self.config.endpoint,
                                    data='{"Message:", "Success"}')
        self.assertEqual(response.status_code, 200)