示例#1
0
	def test_sys_is_file_when_dir(self):
		"""Test that a path is not a file when it is a directory"""
		self.assertEqual(False, system.is_file(self.sysdirpath))
示例#2
0
	def test_sys_is_file_missing_file(self):
		"""Test that a path is not a file when it is not a file"""
		self.assertEqual(False, system.is_file(self.bogusfilepath))
示例#3
0
	def test_syst_is_file(self):
		"""Test that a path is a file when it is a file"""
		self.assertEqual(True, system.is_file(self.sysfilepath))
示例#4
0
 def test_sys_is_file_when_dir(self):
     """Test that a path is not a file when it is a directory"""
     self.assertEqual(False, system.is_file(self.sysdirpath))
示例#5
0
 def test_sys_is_file_missing_file(self):
     """Test that a path is not a file when it is not a file"""
     self.assertEqual(False, system.is_file(self.bogusfilepath))
示例#6
0
 def test_syst_is_file(self):
     """Test that a path is a file when it is a file"""
     self.assertEqual(True, system.is_file(self.sysfilepath))