def test_create_already_existing_folder(self):
        """Tests if the user is attempting to create
        a folder which is already existing.
        """

        test_user = CommandHandler()
        test_user.register("test7", "lognslb402193570")
        test_user.login("test7", "lognslb402193570")
        test_user.create_folder("movies")
        expected = "\nThe folder already exists!"
        actual = test_user.create_folder("movies")
        self.assertEqual(expected, actual)
        test_user.quit()
    def test_change_folder(self):
        """Tests if the user is attempting to move the location
        of the directory tree.
        """

        test_user = CommandHandler()
        test_user.register("test8", "rgglherglse9421-4")
        test_user.login("test8", "rgglherglse9421-4")
        test_user.create_folder("movies")
        expected = "\nSuccessfully Moved to folder Root/test8\movies"
        actual = test_user.change_folder("movies")
        self.assertEqual(expected, actual)
        test_user.quit()
    def test_create_folder(self):
        """Tests if the user able to create a folder
        """

        test_user = CommandHandler()
        test_user.register("test6", "jgldaoghgealg8014")
        test_user.login("test6", "jgldaoghgealg8014")
        expected = "\nSuccessfully created folder movies"
        actual = test_user.create_folder("movies")
        self.assertEqual(expected, actual)
        test_user.quit()