def test_not_directory_nonpositive(self, mock_stdout):
        """
        Negative test
        Check returns value if directory is not directory

        """
        self.assertEqual(similar_files.work(1), [])
        self.assertEqual(mock_stdout.getvalue(),
                         "Directory 1 does not exists\n")
    def test_directory_empty_positive(self):
        """
        Positive test
        Check returns value if directory is empty

        """
        self.assertEqual(
            similar_files.work(
                os.path.join(DISTRO_ROOT_PATH, 'folder_for_test_2')), [])
    def test_other_extension_positive(self):
        """
        Positive test
        Check returns value if directory with other extension

        """
        self.assertEqual(
            similar_files.work(
                os.path.join(DISTRO_ROOT_PATH, 'folder_for_test_3')),
            [[
                os.path.join(DISTRO_ROOT_PATH, 'folder_for_test_3',
                             'file1.txt'),
                os.path.join(DISTRO_ROOT_PATH, 'folder_for_test_3', 'file2.py')
            ]])
    def test_directory_isnot_empty_positive(self):
        """
        Positive test
        Check returns value if directory with similar files

        """
        self.assertEqual(
            similar_files.work(
                os.path.join(DISTRO_ROOT_PATH, 'folder__for_test_1')), [[
                    os.path.join(DISTRO_ROOT_PATH, 'folder__for_test_1',
                                 'file1.txt'),
                    os.path.join(DISTRO_ROOT_PATH, 'folder__for_test_1',
                                 'file2.txt'),
                    os.path.join(DISTRO_ROOT_PATH, 'folder__for_test_1',
                                 'subfolder', 'file1.txt')
                ]])