Lines Matching refs:fromstr

115                 action.fromstr("file 12345 name=foo path=/tmp/foo")
116 action.fromstr("file 12345 name=foo attr=bar path=/tmp/foo")
117 action.fromstr("file 12345 name=foo attr=bar attr=bar path=/tmp/foo")
119 action.fromstr("file 12345 name=foo path=/tmp/foo attr=bar")
120 action.fromstr("file 12345 name=foo path=/tmp/foo attr=bar ")
121 action.fromstr("file 12345 name=foo path=/tmp/foo attr=bar ")
123 action.fromstr("file 12345 name=\"foo bar\" path=\"/tmp/foo\" attr=\"bar baz\"")
124 action.fromstr("file 12345 name=\"foo bar\" path=\"/tmp/foo\" attr=\"bar baz\"")
126 action.fromstr("file 12345 name=foo value=barbaz path=/tmp/foo")
127 action.fromstr("file 12345 name=foo value=\"bar baz\" path=/tmp/foo")
128 action.fromstr("file 12345 name=\"foo bar\" value=baz path=/tmp/foo")
130 action.fromstr("file 12345 name=foo value=barbazquux path=/tmp/foo")
131 action.fromstr("file 12345 name=foo value=\"bar baz quux\" path=/tmp/foo")
132 action.fromstr("file 12345 name=\"foo bar baz\" value=quux path=/tmp/foo")
134 action.fromstr("file 12345 name=\"foo\" value=\"bar\" path=/tmp/foo")
135 action.fromstr("file 12345 name=foo value=\"bar\" path=/tmp/foo")
136 action.fromstr("file 12345 name=\"foo\" value=bar path=/tmp/foo")
138 action.fromstr("signature 12345 algorithm=foo")
144 a = action.fromstr("set pkg.obsolete=true")
145 a2 = action.fromstr("set name=pkg.obsolete value=true")
152 a = action.fromstr("file 12345 name='foo' value=bar path=/tmp/foo")
160 a = action.fromstr("file 12345 name='f\"o\"o' value=bar path=/tmp/foo")
168 a = action.fromstr("file 12345 name='f\\'o\\'o' value=bar path=/tmp/foo")
176 a = action.fromstr("file 12345 name=foo\tvalue=bar path=/tmp/foo")
184 a = action.fromstr("file 12345 name=foo\"bar path=/tmp/foo")
190 a = action.fromstr("file 12345 name=foo\"bar\"baz path=/tmp/foo")
196 a = action.fromstr("file 12345 name=foo\\ path=/tmp/foo")
203 a = action.fromstr("driver alias=pci1234,56 alias=pci4567,89 class=scsi name=lsimega")
208 a = action.fromstr('set name=foo value=""')
214 a = action.fromstr('set name=foo value=ab value="" value=c')
221 a = action.fromstr('license license="Common Development and '
232 a = action.fromstr(r'set name=pkg.description value="Sphinx is a tool that makes it easy to create intelligent \"and beautiful documentation f\"or Python projects (or \"other documents consisting of\" multiple reStructuredText so\"urces), written by Georg Bran\"dl. It was originally created\" to translate the new Python \"documentation, but has now be\"en cleaned up in the hope tha\"t it will be useful to many o\"ther projects. Sphinx uses re\"StructuredText as its markup \"language, and many of its str\"engths come from the power an\"d straightforwardness of reSt\"ructuredText and its parsing \"and translating suite, the Do\"cutils. Although it is still \"under constant development, t\"he following features are alr\"eady present, work fine and c\"an be seen \"in action\" \"in the Python docs: * Output \"formats: HTML (including Wind\"ows HTML Help) and LaTeX, for\" printable PDF versions * Ext\"ensive cross-references: sema\"ntic markup and automatic lin\"ks for functions, classes, gl\"ossary terms and similar piec\"es of information * Hierarchi\"cal structure: easy definitio\"n of a document tree, with au\"tomatic links to siblings, pa\"rents and children * Automati\"c indices: general index as w\"ell as a module index * Code \"handling: automatic highlight\"ing using the Pygments highli\"ghter * Various extensions ar\"e available, e.g. for automat\"ic testing of snippets and in\"clusion of appropriately formatted docstrings."')
237 a = action.fromstr("file hash=abc123 path=usr/bin/foo mode=0755 owner=root group=bin")
245 a = action.fromstr('license license="Common Development and '
251 a = action.fromstr('license license="Common Development and '
257 a = action.fromstr('license license="Common Development and '
263 a = action.fromstr('license license="Common Development and '
271 act = action.fromstr(astr)
277 that we can feed the resulting string back into fromstr() and
283 a = action.fromstr(s)
285 a2 = action.fromstr(s2)
297 a = action.fromstr(s)
301 a2 = action.fromstr(s2)
316 a = action.fromstr(astr.format(k))
317 self.assertTrue(action.fromstr(str(a)) == a)
379 sig_act = action.fromstr(
385 a = action.fromstr(s)
393 a2 = action.fromstr(s2)
404 a = action.fromstr(self.act_strings[0])
409 sig_act2 = action.fromstr(
420 action.fromstr(text)
434 action.fromstr(text)
443 self.assertRaises(action.UnknownActionError, action.fromstr,
445 self.assertRaises(action.UnknownActionError, action.fromstr,
503 self.assertRaises(action.InvalidActionError, action.fromstr,
507 self.assertRaises(action.InvalidActionError, action.fromstr,
516 self.assertRaises(action.InvalidActionError, action.fromstr,
522 action.fromstr("file abc123 hash=abc123 path=usr/bin/foo mode=0755 owner=root group=bin")
533 bad_act = action.fromstr(astr)
724 act = action.fromstr(