コード例 #1
0
    def setUp(self, *args):
        self.check_data = deepcopy(CHECK_TEST_DATA)
        self.check = CheckInstance(self.check_data)
        self.settings_module = ModuleType('fake_settings_module')
        self.settings_module.ALAMO_HTTP_NOTIFICATION_URL = 'foo'

        settings.reconfigure(self.settings_module)
コード例 #2
0
 def test_plugin_requires_http_url(self):
     self.settings_module.ALAMO_HTTP_NOTIFICATION_URL = None
     settings.reconfigure(self.settings_module)
     with self.assertRaises(AssertionError):
         HttpNotificationClient()