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