def test_dont_modify_list(self):
     array = [17, 42, 86, 23, 0, 69]
     hs = HighScores(array)
     hs.personal_best()  # don't need to use it
     assert hs.scores == array
Exemplo n.º 2
0
 def test_scores_after_personal_best(self):
     scores = [20, 70, 15, 25, 30]
     expected = [20, 70, 15, 25, 30]
     highscores = HighScores(scores)
     highscores.personal_best()
     self.assertEqual(highscores.scores, expected)