def METHOD_NAME(self):
    with self.assertRaises(configparser.NoOptionError):
        testargs = ["monitor.py", "-f", "tests/monitor-nointerval.ini"]
        with patch.object(sys, "argv", testargs):
            monitor.main()
    with self.assertRaises(ValueError):
        testargs = ["monitor.py", "-f", "tests/monitor-badinterval.ini"]
        with patch.object(sys, "argv", testargs):
            monitor.main()