def testSortTeamsByPoints(self):
     ranking_table = RankingTable('')
     result_list = ranking_table._sortTeamsByPoints({'TeamB':9, 'TeamA':2})
     self.assertEqual(len(result_list),2)
     self.assertEqual(result_list[0][0],'TeamB')
     self.assertEqual(result_list[0][1],9)
     self.assertEqual(result_list[1][0],'TeamA')
     self.assertEqual(result_list[1][1],2)
 def testSortTeamsByPointsEqualPointsAlphabetic(self):
     ranking_table = RankingTable('')
     result_list = ranking_table._sortTeamsByPoints({'TeamB':2, 'TeamA':2, 'TeamC':3, 'TeamD':0})
     self.assertEqual(len(result_list),4)
     self.assertEqual(result_list[0][0],'TeamC')
     self.assertEqual(result_list[0][1],3)
     self.assertEqual(result_list[1][0],'TeamA')
     self.assertEqual(result_list[1][1],2)        
     self.assertEqual(result_list[2][0],'TeamB')
     self.assertEqual(result_list[2][1],2)        
     self.assertEqual(result_list[3][0],'TeamD')
     self.assertEqual(result_list[3][1],0)