@add_fixtures(['test_scmtools'])
    def test_post_all_events_and_more(self):
        self.user.is_superuser = True
        self.user.save()

        rsp = self.api_post(
            get_webhook_list_url(),
            {
                'enabled': 0,
                'events': 'review_request_closed,*,review_request_published',
                'url': 'http://example.com',
                'encoding': 'application/json',
                'custom_content': '',
                'apply_to': 'all'
            },
            expected_mimetype=webhook_item_mimetype)

        webhook = WebHookTarget.objects.get()

        self.assertIn('stat', rsp)
        self.assertEqual(rsp['stat'], 'ok')
        self.assertIn('webhook', rsp)
        self.compare_item(rsp['webhook'], webhook)

        self.assertListEqual(webhook.events, ['*'])
Test the creation of a simple XlsxWriter file with printer settings.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/tests/test_webhook.py/ResourceListTests.test_post_all_events_and_more--crossover with--dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/comparison/test_set_start_page02.py/TestCompareXLSXFiles.test_create_file