python-benedict/tests/serializers/test_abstract_serializer.py

19 lines
448 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
from benedict.serializers import AbstractSerializer
import unittest
class abstract_serializer_test_case(unittest.TestCase):
def test_decode_abstract(self):
s = AbstractSerializer()
with self.assertRaises(NotImplementedError):
s.decode('')
def test_encode_abstract(self):
s = AbstractSerializer()
with self.assertRaises(NotImplementedError):
s.encode({})