aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/test/unit/test_parse.py
blob: 1c899bbbba654a51bfbe530385695f39c89cd380 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)