import unittest

from context import comedian  # pylint: disable=W0611

from comedian.configuration import Configuration


class ConfigurationTest(unittest.TestCase):
    def setUp(self):
        self.configuration = Configuration(
            shell="shell",
            dd_bs="dd_bs",
            random_device="random_device",
            media_dir="media_dir",
            tmp_dir="tmp_dir",
        )

    def test_values(self):
        self.assertEqual("shell", self.configuration.shell)
        self.assertEqual("dd_bs", self.configuration.dd_bs)
        self.assertEqual("random_device", self.configuration.random_device)
        self.assertEqual("media_dir", self.configuration.media_dir)
        self.assertEqual("tmp_dir", self.configuration.tmp_dir)

    def test_paths(self):
        self.assertEqual(
            "media_dir/path",
            self.configuration.media_path("path"),
        )
        self.assertEqual("tmp_dir/path", self.configuration.tmp_path("path"))

import unittest

from context import comedian  # pylint: disable=W0611

from comedian.configuration import Configuration


class ConfigurationTest(unittest.TestCase):
    def setUp(self):
        self.configuration = Configuration(
            shell="shell",
            dd_bs="dd_bs",
            random_device="random_device",
            media_dir="media_dir",
            tmp_dir="tmp_dir",
        )

    def test_values(self):
        self.assertEqual("shell", self.configuration.shell)
        self.assertEqual("dd_bs", self.configuration.dd_bs)
        self.assertEqual("random_device", self.configuration.random_device)
        self.assertEqual("media_dir", self.configuration.media_dir)
        self.assertEqual("tmp_dir", self.configuration.tmp_dir)

    def test_paths(self):
        self.assertEqual(
            "media_dir/path",
            self.configuration.media_path("path"),
        )
        self.assertEqual("tmp_dir/path", self.configuration.tmp_path("path"))

# pylint: disable=W0611