File: test_serializer_error.py

package info (click to toggle)
python-confluent-kafka 2.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,232 kB
  • sloc: python: 36,571; ansic: 9,717; sh: 1,519; makefile: 198
file content (13 lines) | stat: -rw-r--r-- 336 bytes parent folder | download | duplicates (2)
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'