Exemple #1
0
    def testParseIntSet(self):
        """
        see ticket:7003
        """
        params = JobParams()
        a = Set("Channels").ofType(rint(0))
        params.inputs = {"a": a}

        rv = parse_inputs(["a=1,2"], params)["a"].val
        for x in rv:
            assert isinstance(x, omero.RInt)
        assert 1 == rv[0].val
        assert 2 == rv[1].val
    def testParseIntList(self):
        """
        see ticket:7003
        """
        params = JobParams()
        a = List("Channels").ofType(rint(0))
        params.inputs = {"a": a}

        rv = parse_inputs(["a=1,2"], params)["a"].val
        for x in rv:
            assert isinstance(x, omero.RInt)
        assert 1 == rv[0].val
        assert 2 == rv[1].val