Ejemplo n.º 1
0
    def test_apply_valid_fields(self):
        """:meth:`set_fields` should set `sysparm_fields` in :prop:`_sysparms` to a comma-separated string"""

        fields = ["field1", "field2"]
        sp = ParamsBuilder()
        sp.fields = fields

        self.assertEquals(sp._sysparms["sysparm_fields"], ",".join(fields))
        self.assertEquals(sp.fields, ",".join(fields))
Ejemplo n.º 2
0
    def test_apply_valid_fields(self):
        """:meth:`set_fields` should set `sysparm_fields` in :prop:`_sysparms` to a comma-separated string"""

        fields = ['field1', 'field2']
        sp = ParamsBuilder()
        sp.fields = fields

        self.assertEquals(sp._sysparms['sysparm_fields'], ','.join(fields))
        self.assertEquals(sp.fields, ','.join(fields))
Ejemplo n.º 3
0
    def test_apply_valid_fields(self):
        """:meth:`set_fields` should set `sysparm_fields` in :prop:`_sysparms` to a comma-separated string"""

        fields = ['field1', 'field2']
        sp = ParamsBuilder()
        sp.fields = fields

        self.assertEquals(sp._sysparms['sysparm_fields'], ','.join(fields))
        self.assertEquals(sp.fields, ','.join(fields))