def setUp(self):
        super(PLSQLTestCase, self).setUp()
        path = "%s/%s" % (os.path.dirname(os.path.abspath(__file__)),
                          "oracle_package.sql")

        # For some reason running this SQL via cx_Oracle doesn't
        # work, but it does with sqlplus. I don't know why. :-(
        input = open(path)
        proc = subprocess.Popen(
            ["sqlplus", "-S", "-L", "%s/%s@%s" % (
                self.config['user'],
                self.config['password'],
                self.config['dsn'])],
            stdin=input,
            stdout=subprocess.PIPE,
            stderr=subprocess.STDOUT)

        input.close()
        out,bleh = proc.communicate()
        for line in out.splitlines():
            line = line.strip()
            if line:
                log.msg(line % "[sqlplus] %s")

        assert proc.returncode == 0
dataset/ETHPy150Open marineam/nagcat/python/nagcat/unittests/queries/test_oracle.py/PLSQLTestCase.setUp/swapped operands of `%`