@@ -0,0 +1,1140 @@
+# -*- coding: utf-8 -*-%0A%22%22%22Command Line Interface test cases.%22%22%22%0A%0Aimport argparse%0Aimport os%0Aimport tempfile%0Aimport unittest%0A%0Afrom pic2map.cli import valid_directory%0A%0A%0Aclass ValidDirectoryTest(unittest.TestCase):%0A%0A    %22%22%22Valid directory test cases.%22%22%22%0A%0A    def test_valid_directory(self):%0A        %22%22%22Valid directory path.%22%22%22%0A        temp_directory = tempfile.mkdtemp()%0A        try:%0A            self.assertTrue(%0A                valid_directory(temp_directory),%0A                temp_directory,%0A            )%0A        finally:%0A            os.rmdir(temp_directory)%0A%0A    def test_invalid_directory(self):%0A        %22%22%22Invalid directory.%22%22%22%0A        with tempfile.NamedTemporaryFile() as temp_file:%0A            with self.assertRaises(argparse.ArgumentTypeError):%0A                valid_directory(temp_file.name)%0A%0A    def test_unreadable_directory(self):%0A        %22%22%22Unreadable diretory.%22%22%22%0A        temp_directory = tempfile.mkdtemp()%0A        try:%0A            os.chmod(temp_directory, 0)%0A            with self.assertRaises(argparse.ArgumentTypeError):%0A                valid_directory(temp_directory)%0A        finally:%0A            os.rmdir(temp_directory)%0A

Add valid directory test cases