tests Package

test_fileutil Module

class leap.util.tests.test_fileutil.FileUtilTest(methodName='runTest')

Bases: unittest.case.TestCase

test our file utils

create_temp_dir()
get_file_path(filename)
get_mode(fp)
remove_temp_dir()
setUp()
tearDown()
test_check_and_fix_urw_only()

ensure check_and_fix_urx_only ok?

test_is_user_executable()

touch_exec_file creates in mode 700?

test_mkdir_p()

our own mkdir -p implementation ok?

test_which()

which implementation ok? not a very reliable test, but I cannot think of anything smarter now I guess it’s highly improbable that copy

touch_exec_file()

test_leap_argparse Module

class leap.util.tests.test_leap_argparse.LeapArgParseTest(methodName='runTest')

Bases: unittest.case.TestCase

Test argparse options for eip client

setUp()

get the parser

test_debug_mode()

test debug mode option

Table Of Contents

Previous topic

util Package

This Page