예제 #1
0
 def test_directory_path(self):
     # Ensure the full path of a directory is correctly returned.
     os.mkdir(self.path)
     self.assertEqual(self.path, first_path_in_dir(self.directory))
예제 #2
0
 def test_file_path(self):
     # Ensure the full path of a file is correctly returned.
     open(self.path, 'w').close()
     self.assertEqual(self.path, first_path_in_dir(self.directory))