Lines Matching refs:read_keyval
188 def read_keyval(self, contents): member in test_read_keyval
191 keyval = utils.read_keyval("file")
199 self.assertEqual({}, utils.read_keyval("file"))
206 utils.read_keyval("file")
213 utils.read_keyval("dir")
218 keyval = self.read_keyval("a=b \n")
223 keyval = self.read_keyval("a=b # a comment\n")
228 keyval = self.read_keyval("a=1\n")
234 keyval = self.read_keyval("a=1.5\n")
240 keyval = self.read_keyval("a=one\nb=two\n")
245 keyval = self.read_keyval("a=one\nb=two\na=three\n")
250 keyval = self.read_keyval("a=b=c\n")
255 self.assertRaises(ValueError, self.read_keyval, "a$=one\n")
259 keyval = self.read_keyval("a_b=value\n")
264 keyval = self.read_keyval("a-b=value\n")
268 keyval = self.read_keyval("a=\n")