'Check that score and total are calculated correctly for the progress fraction.'

@ddt.data(('never', True, None), ('never', False, None), ('past_due', True, None), ('past_due', False, None), ('always', True, 1), ('always', False, 0))
@ddt.unpack
def test_get_display_progress_show_correctness(self, show_correctness, is_correct, expected_score):

    module = CapaFactory.create(correct=is_correct, show_correctness=show_correctness, due=self.tomorrow_str)
    module.weight = 1
    (score, total) = module.get_display_progress()
    self.assertEqual(score, expected_score)
    self.assertEqual(total, 1)
