def METHOD_NAME(self):
    with ReaderFactory("sol") as reader:
        if reader is None:
            raise IOError("Reader 'sol' is not registered")
        with self.assertRaises(ValueError):
            soln = reader(join(currdir, "bad_objnoline.sol"))