Exemplo n.º 1
0
  def testGameResults(self):
    g = Game.query().get()
    results = game_results(g)

    self.assertEqual('Player 4', results.three.get().name)
    self.assertEqual('Player 7', results.two.get().name)
    self.assertEqual('Player 1', results.one.get().name)
    self.assertEqual(10, results.voters)
Exemplo n.º 2
0
  def testGameResults(self):
    g = Game.query().get()

    results = game_results(g)

    self.assertIsNone(results)