'Check that the search within this course will yield the expected number of results'

def assert_search_count(self, expected_count):

    response = self.searcher.search(field_dictionary={'course': self.course_id})
    self.assertEqual(response['total'], expected_count)
