def test_passing_score(self): """ Uses default values of completed_passes and interceptions to calculate the passing score """ qb = Quarterback() self.assertEqual((20 - (2 * 4)), qb.passing_score())
def test_passing_score(self): qb = Quarterback(name='JoeMontana', safety=0, field_goals=0, completed_passes=20, yards=355, touchdowns=4, interceptions=0) self.assertEqual((20 - (2 * 0) + (.25 * 355) + 4), qb.passing_score(20, 355, 4, 0))
def test_passing_score(self): qb = Quarterback() self.assertEqual((20 - (2 * 4)), qb.passing_score())
def test_passing_score(self): qb = Quarterback() self.assertEqual((20 - (2 * 4)), qb.passing_score()) qb1 = Quarterback(completed_passes=40, interceptions=2) self.assertEqual((40 - (2 * 2)), qb1.passing_score())