# Path: pysecure/test/test_base.py
# def connect_sftp_test(sftp_cb):
#     print("Connecting SFTP with key: %s" % (key_filepath))
#     auth_cb = get_key_auth_cb(key_filepath)
#     connect_sftp_with_cb(sftp_cb, user, host, auth_cb, verbosity=verbosity)


from unittest import TestCase
from pysecure.test.test_base import connect_sftp_test


class DirManipTest(TestCase):
    def __sftp_cb(self, ssh, sftp):
#        print("Creating directory.")
        sftp.mkdir("xyz")
        
#        print("Removing directory.")
        sftp.rmdir("xyz")

    def test_dir_manip(self):

# Path: pysecure/test/test_base.py
# def connect_sftp_test(sftp_cb):
#     print("Connecting SFTP with key: %s" % (key_filepath))
#     auth_cb = get_key_auth_cb(key_filepath)
#     connect_sftp_with_cb(sftp_cb, user, host, auth_cb, verbosity=verbosity)


# Path: pysecure/test/dir_manip.py
from unittest import TestCase
from pysecure.test.test_base import connect_sftp_test



class DirManipTest(TestCase):
    def __sftp_cb(self, ssh, sftp):
#        print("Creating directory.")
        sftp.mkdir("xyz")
        
#        print("Removing directory.")
        sftp.rmdir("xyz")

    def test_dir_manip(self):

        connect_sftp_test(self.__sftp_cb)