Lines Matching refs:props

70     self.props = PropList("file")
74 self.props = None
77 self.assertEqual(4, len(self.props.get_all_props()))
84 for i,p in enumerate(self.props.get_all_props()):
90 self.assertEqual(set(["foo", "bar", "qux"]), self.props.get_all_names())
92 self.assertEqual("true", self.props.get_value("foo"))
93 self.assertEqual("false", self.props.get_value("bar"))
94 self.assertEqual("1", self.props.get_value("qux"))
97 self.assertEqual(2, len(self.props.get_props("foo")))
100 self.props.put("new", "30")
102 self.assertEqual(5, len(self.props.get_all_props()))
103 last_prop = self.props.get_all_props()[-1]
109 self.props.put("foo", "NewValue")
111 self.assertEqual(4, len(self.props.get_all_props()))
112 foo_prop = self.props.get_props("foo")[0]
120 self.props.put("qux", "2")
122 self.assertEqual(5, len(self.props.get_all_props()))
123 last_prop = self.props.get_all_props()[-1]
131 props_to_delete = self.props.get_props("foo")[0]
134 self.assertEqual(3, len(self.props.get_all_props()))
139 props_to_delete = self.props.get_props("qux")[0]
142 self.assertEqual(3, len(self.props.get_all_props()))
147 props_to_be_overridden = self.props.get_props("foo")[1]
150 self.assertTrue(override_optional_props(self.props))
153 self.assertEqual(3, len(self.props.get_all_props()))
155 self.assertEqual(1, len(self.props.get_props("foo")))
156 self.assertEqual("true", self.props.get_props("foo")[0].value)
173 props = PropList("hello")
175 props_to_be_overridden = props.get_props("qux")[0]
178 self.assertTrue(override_optional_props(props))
180 self.assertEqual(1, len(props.get_props("qux")))
181 self.assertEqual("1", props.get_props("qux")[0].value)
183 self.assertFalse(props.get_props("qux")[0].is_optional())
202 props = PropList("hello")
205 self.assertFalse(override_optional_props(props))
223 props = PropList("hello")
224 optional_prop = props.get_props("foo")[2] # the last foo?=false one
228 self.assertTrue(override_optional_props(props))
248 props = PropList("hello")
252 self.assertTrue(override_optional_props(props, allow_dup=True))