def test_latest_score(self): scores = [100, 0, 90, 30] expected = 30 self.assertEqual(latest(scores), expected)
def test_latest_score(self): scores = [100, 0, 90, 30] expected = 30 assert latest(scores) == expected
def test_run_multiple_queries(self): scores = [10, 20, 30, 40, 50, 45] self.assertEqual(latest(scores), 45) self.assertEqual(personal_top_three(scores), [50, 45, 40])
def test_latest_scores(self): self.assertEqual(4, latest(self.scores_1))