def METHOD_NAME(self):
    try:
        # cannot use openhook and inplace mode
        fi = FileInput(inplace=1, openhook=lambda f,m: None)
        self.fail("FileInput should raise if both inplace "
                         "and openhook arguments are given")
    except ValueError:
        pass
    try:
        fi = FileInput(openhook=1)
        self.fail("FileInput should check openhook for being callable")
    except ValueError:
        pass
    try:
        t1 = writeTmp(1, ["A\nB"], mode="wb")
        fi = FileInput(files=t1, openhook=hook_encoded("rot13"))
        lines = list(fi)
        self.assertEqual(lines, ["N\n", "O"])
    finally:
        remove_tempfiles(t1)