#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
Some simple tests for the autopaths package.

You can run this file like this:

  ipython -i -- ~/repos/autopaths/test/test_file_path.py
"""

# Built-in modules #
import os, inspect

# Get current directory (works always) #
file_name = os.path.abspath((inspect.stack()[0])[1])
this_dir  = os.path.dirname(os.path.abspath(file_name)) + '/'

# All our example file system #
dummy_files = this_dir + 'dummy_file_system/'

# Internal modules #
from autopaths.dir_path import DirectoryPath

###############################################################################
def test_symlink():
    d = DirectoryPath(dummy_files)
    one = d['one.txt']
    one.link_to(d + 'one_link.txt')

###############################################################################
if __name__ == '__main__':
    test_symlink()
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
Some simple tests for the autopaths package.

You can run this file like this:

  ipython -i -- ~/repos/autopaths/test/test_file_path.py
"""

# Built-in modules #
import os, inspect

# Get current directory (works always) #
file_name = os.path.abspath((inspect.stack()[0])[1])
this_dir  = os.path.dirname(os.path.abspath(file_name)) + '/'

# All our example file system #
dummy_files = this_dir + 'dummy_file_system/'

# Internal modules #
from autopaths.dir_path import DirectoryPath

###############################################################################
def test_symlink():
    d = DirectoryPath(dummy_files)
    one = d['one.txt']
    one.link_to(d + 'one_link.txt')

###############################################################################
if __name__ == '__main__':
    test_symlink()
#!/usr/bin/env python3 # -*- coding: utf-8 -*- Some simple tests for the autopaths package.  You can run this file like this:    ipython -i -- ~/repos/autopaths/test/test_file_path.py # Built-in modules # # Get current directory (works always) # # All our example file system # # Internal modules # ############################################################################### ###############################################################################