'Update a problem and make it public at the same time.'

def test_make_public_with_update(self):

    self.client.ajax_post(self.problem_update_url, data={'metadata': {'due': '2077-10-10T04:00Z'}, 'publish': 'make_public'})
    published = self.get_item_from_modulestore(self.problem_usage_key)
    self.assertEqual(published.due, datetime(2077, 10, 10, 4, 0, tzinfo=UTC))
