Exemplo n.º 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")))
Exemplo n.º 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))
Exemplo n.º 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))