# Path: tests/base.py
# class PycoreutilsBaseTest(unittest.TestCase):
#     def setUp(self):
#         self.runner = CliRunner()
#         self.cli = cli


from .base import PycoreutilsBaseTest
from __future__ import unicode_literals



class TestBase64(PycoreutilsBaseTest):
    def test_base64_decode(self):
        encoded = b'SGF2ZSBhIGxvdCBvZiBmdW4uLi4K'
        result = self.runner.invoke(self.cli, ['base64', '-d'], input=encoded)
        self.assertEqual(result.exit_code, 0)

# Path: tests/base.py
# class PycoreutilsBaseTest(unittest.TestCase):
#     def setUp(self):
#         self.runner = CliRunner()
#         self.cli = cli


# Path: tests/test_base64.py
from .base import PycoreutilsBaseTest

from __future__ import unicode_literals



class TestBase64(PycoreutilsBaseTest):
    def test_base64_decode(self):
        encoded = b'SGF2ZSBhIGxvdCBvZiBmdW4uLi4K'
        result = self.runner.invoke(self.cli, ['base64', '-d'], input=encoded)
        self.assertEqual(result.exit_code, 0)

        self.assertEqual(result.output, 'Have a lot of fun...\n')