Exemplo n.º 1
0
    def test_interrupt(self):
        wpwatcher = WPWatcher(Config.fromstring(DEFAULT_CONFIG))

        with self.assertRaises(SystemExit):
            wpwatcher.interrupt()
Exemplo n.º 2
0
    def test_interrupt(self):
        wpwatcher = WPWatcher(
            WPWatcherConfig(string=DEFAULT_CONFIG).build_config()[0])

        with self.assertRaises(SystemExit):
            wpwatcher.interrupt()