Package test_suite :: Package unit_tests :: Package _lib :: Module test_io :: Class Test_io
[hide private]
[frames] | no frames]

Class Test_io

source code


Unit tests for the functions of the 'lib.io' module.

Nested Classes [hide private]

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
test_file_root(self)
Test the lib.io.file_root() function with '/tmp/test.xyz'.
source code
 
test_file_root2(self)
Test the lib.io.file_root() function with '/tmp/test.xyz.gz'.
source code
 
test_get_file_path(self)
Test for file paths which should remain unmodified by lib.io.get_file_path.
source code
 
test_get_file_path_with_dir(self)
The modification of file paths by lib.io.get_file_path when a directory is supplied.
source code
 
test_get_file_path_with_homedir(self)
The modification of file paths with '~', by lib.io.get_file_path.
source code
 
test_swap_extension_no_ext(self)
Test the lib.io.swap_extension function with a file with no extension.
source code
 
test_swap_extension_ext(self)
Test the lib.io.swap_extension function with a file with an extension.
source code
 
test_swap_extension_double_ext(self)
Test the lib.io.swap_extension function with a file with a double extension.
source code
 
test_swap_extension_broken_ext(self)
Test the lib.io.swap_extension function with a file with a broken extension.
source code

Inherited from unittest.case.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __repr__, __str__, addCleanup, addTypeEqualityFunc, assertAlmostEqual, assertAlmostEquals, assertDictContainsSubset, assertDictEqual, assertEqual, assertEquals, assertFalse, assertGreater, assertGreaterEqual, assertIn, assertIs, assertIsInstance, assertIsNone, assertIsNot, assertIsNotNone, assertItemsEqual, assertLess, assertLessEqual, assertListEqual, assertMultiLineEqual, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIn, assertNotIsInstance, assertNotRegexpMatches, assertRaises, assertRaisesRegexp, assertRegexpMatches, assertSequenceEqual, assertSetEqual, assertTrue, assertTupleEqual, assert_, countTestCases, debug, defaultTestResult, doCleanups, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, setUp, shortDescription, skipTest, tearDown

Inherited from unittest.case.TestCase (private): _addSkip, _baseAssertEqual, _deprecate, _formatMessage, _getAssertEqualityFunc, _truncateMessage

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from unittest.case.TestCase: setUpClass, tearDownClass

Class Variables [hide private]

Inherited from unittest.case.TestCase: longMessage, maxDiff

Inherited from unittest.case.TestCase (private): _classSetupFailed, _diffThreshold

Properties [hide private]

Inherited from object: __class__