'Test reverting draft content to published'

def test_revert_to_published(self):

    self._make_draft_content_different_from_published()
    self.client.ajax_post(self.problem_update_url, data={'publish': 'discard_changes'})
    self._verify_published_with_no_draft(self.problem_usage_key)
    published = modulestore().get_item(self.problem_usage_key, revision=ModuleStoreEnum.RevisionOption.published_only)
    self.assertIsNone(published.due)
