Esempio n. 1
0
 def testEqualScore(self):
     HighScores.highscore('Frank', 789)
     observed = HighScores.highscore('Frank', 789)
     expected = 789
     self.assertEqual(observed, expected, 'Results are not the expected, expected: {0}, actual: {1}'.format(expected,observed))            
Esempio n. 2
0
 def testNewScore(self):
     observed = HighScores.highscore('Roger', -50)
     expected = -50
     self.assertEqual(observed, expected, 'Results are not the expected, expected: {0}, actual: {1}'.format(expected,observed))