Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/m/y/mysql-utilities-HEAD/mysql-test/t/server_info_parameters.py   mysql-utilities(Download)
        cmd_opts = " --format=csv --help"
        comment = "Test case %d - show help" % test_num
        res = self.run_test_case(0, cmd_str + cmd_opts, comment)
        if not res:
            raise MUTLibError("%s: failed" % comment)
 
        test_num += 1
        cmd_opts = " --format=csv --no-headers"
        comment = "Test case %d - no headers" % test_num
        res = self.run_test_case(0, cmd_str + cmd_opts, comment)
            test_num += 1
            comment = "Test case %d - %s" % (test_num, cmd_opts)
            res = self.run_test_case(0, cmd_str + cmd_opts, comment)
            if not res:
                raise MUTLibError("%s: failed" % comment)
        cmd_opts = " --format=vertical -vv"
        comment = "Test case %d - verbose run against online server" % test_num
        res = self.run_test_case(0, cmd_str + cmd_opts, comment)
        if not res:
            raise MUTLibError("%s: failed" % comment)
 
        test_num += 1
        cmd_opts = " --format=vertical --show-servers"
        comment = "Test case %d - show servers" % test_num
        res = self.run_test_case(0, cmd_str + cmd_opts, comment)

src/m/y/mysql-utilities-HEAD/mysql-test/t/server_info_errors.py   mysql-utilities(Download)
        test_num = 1
        comment = "Test case %d - no server" % test_num
        res = self.run_test_case(2, cmd_str, comment)
        if not res:
            raise MUTLibError("%s: failed" % comment)
        cmd_opts = " --server=xewkjsdd:21"
        comment = "Test case %d - bad server" % test_num
        res = self.run_test_case(1, cmd_str + cmd_opts, comment)
        if not res:
            raise MUTLibError("%s: failed" % comment)
        cmd_opts = " --format=ASDASDASD"
        comment = "Test case %d - bad format" % test_num
        res = self.run_test_case(2, cmd_str + cmd_opts, comment)
        if not res:
            raise MUTLibError("%s: failed" % comment)
        cmd_str_wrong = cmd_str.replace(":root", ":wrong")
        comment = "Test case %d - wrong password" % test_num
        res = self.run_test_case(1, cmd_str_wrong + cmd_opts, comment)
        if not res:
            raise MUTLibError("%s: failed" % comment)
        cmd_str_wrong = cmd_str.replace(":root", ":")
        comment = "Test case %d - no password" % test_num
        res = self.run_test_case(1, cmd_str_wrong + cmd_opts, comment)
        if not res:
            raise MUTLibError("%s: failed" % comment)