예제 #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")))
예제 #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))
예제 #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))