def test_get_best_clustering(self):
     scores = {
               'criteria 1': {
                              'Clustering 4': 1.4, 
                              'Clustering 2': 0.7, 
                              'Clustering 3': 0.85, 
                              'Clustering 1': 1.35}, 
               'criteria 2': {
                              'Clustering 4': 0.56, 
                              'Clustering 2': 0.28, 
                              'Clustering 3': 0.34, 
                              'Clustering 1': 0.54
                              }
               }
     bclust, bcrit, scores = BestClusteringSelector.get_best_clustering(scores)
     self.assertItemsEqual( (bclust, bcrit, scores[bcrit][bclust]),  ('Clustering 4', 'criteria 1', 1.4))
 def test_get_best_clustering(self):
     scores = {
         'criteria 1': {
             'Clustering 4': 1.4,
             'Clustering 2': 0.7,
             'Clustering 3': 0.85,
             'Clustering 1': 1.35
         },
         'criteria 2': {
             'Clustering 4': 0.56,
             'Clustering 2': 0.28,
             'Clustering 3': 0.34,
             'Clustering 1': 0.54
         }
     }
     bclust, bcrit, scores = BestClusteringSelector.get_best_clustering(
         scores)
     self.assertItemsEqual((bclust, bcrit, scores[bcrit][bclust]),
                           ('Clustering 4', 'criteria 1', 1.4))