File: test_SerializerError.py

package info (click to toggle)
python-confluent-kafka 1.7.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,900 kB
  • sloc: python: 8,335; ansic: 6,065; sh: 1,203; makefile: 178
file content (13 lines) | stat: -rw-r--r-- 336 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
from confluent_kafka.avro.serializer import SerializerError


class SerializerErrorTest(unittest.TestCase):

    def test_message(self):
        try:
            raise SerializerError("message")
        except SerializerError as e:
            assert e.message == 'message'