'Verifies the result of _get_score_from_persisted_or_latest_block is as expected.'

def _verify_score_result(self, persisted_block, block, weight, expected_r_possible):

    (raw_earned, raw_possible, weighted_earned, weighted_possible, first_attempted) = scores._get_score_from_persisted_or_latest_block(persisted_block, block, weight)
    self.assertEquals(raw_earned, 0.0)
    self.assertEquals(raw_possible, expected_r_possible)
    self.assertEquals(weighted_earned, 0.0)
    if ((weight is None) or (expected_r_possible == 0)):
        self.assertEquals(weighted_possible, expected_r_possible)
    else:
        self.assertEquals(weighted_possible, weight)
    self.assertIsNone(first_attempted)
