def test__make_histogram_filenames(self):
     """_make_histogram_filenames should return correct result.
     """
     distances = {'Distances1':[0,.5,.6,.7],\
                  'Distances2':[.3,.7,.9,.2,1.]}
     obs = _make_histogram_filenames(distances, self.histogram_dir)
     self.assertEqual(obs.keys(), distances.keys())
     for k, v in obs.items():
         exp_prefix = self.histogram_dir + k
         self.assertEquals(v[:len(exp_prefix)], exp_prefix)
         self.assertEquals(v[-4:], '.png')
 def test__make_histogram_filenames(self):
     """_make_histogram_filenames should return correct result.
     """
     distances = {'Distances1':[0,.5,.6,.7],\
                  'Distances2':[.3,.7,.9,.2,1.]}
     obs = _make_histogram_filenames(distances,self.histogram_dir)
     self.assertEqual(obs.keys(),distances.keys())
     for k,v in obs.items():
         exp_prefix = self.histogram_dir+k
         self.assertEquals(v[:len(exp_prefix)],exp_prefix)
         self.assertEquals(v[-4:],'.png')