# Path: lighthouse/scripts/writer.py
# def run():


    import unittest2 as unittest
    import unittest
from mock import patch
from lighthouse.scripts import writer
try:
except ImportError:




@patch("lighthouse.scripts.writer.writer.Writer")
@patch("lighthouse.scripts.writer.parser")
class WriterScriptTests(unittest.TestCase):

    def test_run_handles_keyboardinterrupt(self, parser, Writer):
        Writer.return_value.start.side_effect = KeyboardInterrupt


# Path: lighthouse/scripts/writer.py
# def run():


# Path: tests/scripts/writer_tests.py
    import unittest2 as unittest
    import unittest
from mock import patch
from lighthouse.scripts import writer

try:
except ImportError:




@patch("lighthouse.scripts.writer.writer.Writer")
@patch("lighthouse.scripts.writer.parser")
class WriterScriptTests(unittest.TestCase):

    def test_run_handles_keyboardinterrupt(self, parser, Writer):
        Writer.return_value.start.side_effect = KeyboardInterrupt


        writer.run()