def METHOD_NAME(self):
    r"""Test of the genOutSpec method (bad filename).
    Method: This test ensures that bad filenames cause an exception.
    """
    # the with clause allows the chatter on stdout during
    # object creation to be suppressed
    with RedirectStreams(stdout=self.dev_null):
        sim = self.fixture(SimpleScript)
    out_filename = "/tmp/file/cannot/be/written/spec.json"
    with self.assertRaises(IOError):
        sim.genOutSpec(out_filename)