def testAddTable(self):
     round1 = Round()
     table1 = self.getTable("T1","P1","P2","P3","P4")
     table2 = self.getTable("T2","P5","P6","P7","P8")
     round1.addTable(table1)
     round1.addTable(table2)
     tables = round1.getTables()
     self.assertEqual(table1,tables[0])
     self.assertEqual(table2,tables[1])
 def getRound(self):
     player_indexes = list(range(0, len(self.players)))
     random.shuffle(player_indexes)
     round = Round()
     for Table in self.tables:
         table = Table.new()
         for p in range(0, 4):
             player_index = player_indexes.pop()
             player = self.players[player_index]
             table.addPlayer(player)
         round.addTable(table)
     return round