Sindbad~EG File Manager

Current Path : /usr/lib/python3/dist-packages/josepy/
Upload File :
Current File : //usr/lib/python3/dist-packages/josepy/errors_test.py

"""Tests for josepy.errors."""
import unittest


class UnrecognizedTypeErrorTest(unittest.TestCase):
    def setUp(self):
        from josepy.errors import UnrecognizedTypeError
        self.error = UnrecognizedTypeError('foo', {'type': 'foo'})

    def test_str(self):
        self.assertEqual(
            "foo was not recognized, full message: {'type': 'foo'}",
            str(self.error))


if __name__ == '__main__':
    unittest.main()  # pragma: no cover

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists