'Scenario: I can answer a problem <Correctness>ly
Given External graders respond "<Correctness>"
And I am viewing a "<ProblemType>" problem
in a subsection with show_correctness set to "never"
Then I should see a score of "N point(s) possible (ungraded, results hidden)"
When I answer a "<ProblemType>" problem "<Correctness>ly"
And the "<ProblemType>" problem displays only a "submitted" notification.
And I should see a score of "N point(s) possible (ungraded, results hidden)"
And a "problem_check" server event is emitted
And a "problem_check" browser event is emitted'

@attr(shard=7)
@ddt.data('correct', 'incorrect', 'partially-correct')
def test_answer_says_submitted(self, correctness):

    if ((correctness == 'partially-correct') and (not self.partially_correct)):
        raise SkipTest('Test    incompatible    with    the    current    problem    type')
    possible = 'possible    (ungraded,    results    hidden)'
    if (self.problem_points == 1):
        problem_progress = '1    point    {}'.format(possible)
    else:
        problem_progress = '{}    points    {}'.format(self.problem_points, possible)
    self.problem_page.wait_for((lambda : (self.problem_page.problem_name == self.problem_name)), 'Make    sure    the    correct    problem    is    on    the    page')
    self.assertEqual(self.problem_page.problem_progress_graded_value, problem_progress)
    self.answer_problem(correctness=correctness)
    self.problem_page.click_submit()
    self.wait_for_status('submitted')
    self.problem_page.wait_submitted_notification()
    self.assertEqual(self.problem_page.problem_progress_graded_value, problem_progress)
    expected_events = [{'event_source': 'server', 'event_type': 'problem_check', 'username': self.username}, {'event_source': 'browser', 'event_type': 'problem_check', 'username': self.username}]
    for event in expected_events:
        self.wait_for_events(event_filter=event, number_of_matches=1)
