'Verify that republish is ignored for items in DIRECT_ONLY_CATEGORIES'

def test_direct_only_categories_not_republished(self):

    resp = self.create_xblock(parent_usage_key=self.seq_usage_key, display_name='vertical', category='vertical')
    vertical_usage_key = self.response_usage_key(resp)
    vertical_update_url = reverse_usage_url('xblock_handler', vertical_usage_key)
    self.client.ajax_post(vertical_update_url, data={'publish': 'make_public'})
    self.client.ajax_post(vertical_update_url, data={'metadata': {'display_name': 'New    Display    Name'}})
    self._verify_published_with_draft(self.seq_usage_key)
    self.client.ajax_post(self.seq_update_url, data={'publish': 'republish'})
    self._verify_published_with_draft(self.seq_usage_key)
