def test_write_distance_files(self):
     """write_distance_files should return correct result.
     """
     exp_path = self.working_dir+'distances/dist_Treatment.xls'
     write_distance_files(self.single_field_treatment,\
         dir_prefix=self.working_dir)
     self.assertEqual(open(exp_path,'U').read(),
         open(self.distances_file,'U').read())
 def test_write_distance_files(self):
     """write_distance_files should return correct result.
     """
     exp_path = self.working_dir + 'distances/dist_Treatment.xls'
     write_distance_files(self.single_field_treatment,\
         dir_prefix=self.working_dir)
     self.assertEqual(
         open(exp_path, 'U').read(),
         open(self.distances_file, 'U').read())