# -*- coding: utf-8 -*-

import unittest
from anydo import error
from anydo.lib import error as lib_error


class ErrorTests(unittest.TestCase):

    def test_error_msg(self):
        self.assertEqual(error.AnyDoAPIError('dummy', 'test').__str__(),
                         '(dummy): test')

    def test_lib_error_msg(self):
        self.assertEqual(lib_error.AnyDoAPIBinderError('test').__str__(),
                         'test')

Add unittest for anydo.error, anydo.lib.error.
Add unittest for anydo.error, anydo.lib.error.

Signed-off-by: Kouhei Maeda <c9f1823971fa1a4c79cdb50b3311094021cee31e@palmtb.net>
