Example #1
0
		def test_sys_dir_is_dir_when_missing(self):
			"""Test whether a path is a directory when it is missing"""
			self.assertEqual(False, system.is_dir(os.path.join("bogusdir", "anotherdir")))
Example #2
0
		def test_sys_dir_is_dir(self):
			"""Test whether a path is a directory when it is a directory"""
			self.assertEqual(True, system.is_dir(self.sysdirpath))
Example #3
0
		def test_sys_dir_is_dir_when_file(self):
			"""Test whether a path is a directory when it is a file"""
			self.assertEqual(False, system.is_dir(self.sysfilepath))