def test_should_send_sync_event_and_fail_when_status_code_500(self):
        options = SecureNativeOptions(
            api_key="YOUR_API_KEY",
            api_url="https://api.securenative-stg.com/collector/api/v1")

        responses.add(
            responses.POST,
            "https://api.securenative-stg.com/collector/api/v1/some-path/to-api",
            json={},
            status=500)
        event_manager = EventManager(options)

        res = event_manager.send_sync(self.event, "some-path/to-api")

        self.assertEqual(res.status_code, 500)
    def test_should_successfully_send_sync_event_with_status_code_200(self):
        options = SecureNativeOptions(
            api_key="YOUR_API_KEY",
            api_url="https://api.securenative-stg.com/collector/api/v1")

        res_body = "{\"data\": true}"
        responses.add(
            responses.POST,
            "https://api.securenative-stg.com/collector/api/v1/some-path/to-api",
            json=json.loads(res_body),
            status=200)
        event_manager = EventManager(options)

        data = event_manager.send_sync(self.event, "some-path/to-api")
        self.assertEqual(res_body, data.text)