v = attr_value.DoubleQuoted
val 'f&'
n = 'attr_name.Done'
..v = attr_value.Empty
....v = attr_value.SingleQuoted
unquoted val '&f'
..v = attr_value.Unquoted
unquoted val 'foo'
..all [('double', ''), ('single', ''), ('empty', 'value'), ('missing', ''), ('empty2', '')]
..*** OOPS
*** DOUBLE
.....1 h8_id.BadAmpersand '&'
1 h8_id.EndOfStream ''
1 h8_id.BadGreaterThan '>'
1 h8_id.EndOfStream ''
.9 h8_id.StartTag ''
61 h8_id.CData '"0" && value<"10" ?"valid":"error"]]>'
71 h8_id.EndTag ''
71 h8_id.EndOfStream ''
.15 h8_id.Decl ''
16 h8_id.RawData '\n'
22 h8_id.StartTag ''
25 h8_id.RawData '\n '
41 h8_id.Comment ''
45 h8_id.RawData '\n\n '
51 h8_id.StartTag '
'
56 h8_id.RawData '\n '
63 h8_id.StartTag ''
76 h8_id.RawData 'Pulp Testdata'
84 h8_id.EndTag ''
88 h8_id.RawData '\n\n '
95 h8_id.EndTag ''
99 h8_id.RawData '\n\n '
105 h8_id.StartTag ''
111 h8_id.RawData '\n\n '
166 h8_id.Comment ''
172 h8_id.RawData '\n\n '
197 h8_id.Processing '\n directive\n ?>'
203 h8_id.RawData '\n\n '
206 h8_id.StartTag ''
213 h8_id.RawData '\n '
229 h8_id.StartTag ''
236 h8_id.RawData 'my span'
243 h8_id.EndTag ''
250 h8_id.RawData '\n '
285 h8_id.StartTag ''
289 h8_id.RawData 'Link'
293 h8_id.EndTag ''
301 h8_id.RawData '\n\n '
322 h8_id.StartTag ''
326 h8_id.RawData 'Link'
330 h8_id.EndTag ''
338 h8_id.RawData '\n\n '
370 h8_id.StartTag ''
374 h8_id.RawData 'Link'
378 h8_id.EndTag ''
384 h8_id.RawData '\n\n '
388 h8_id.EndTag '
'
394 h8_id.RawData '\n\n '
413 h8_id.StartTag ''
425 h8_id.RawData '\n this '
430 h8_id.CharEntity '&'
445 h8_id.RawData ' that and mu = '
453 h8_id.HexChar 'μ'
458 h8_id.RawData '\n '
462 h8_id.EndTag '
'
468 h8_id.RawData '\n\n '
471 h8_id.StartTag ''
478 h8_id.RawData '\n '
482 h8_id.CharEntity '<'
491 h8_id.RawData 'not a tag'
495 h8_id.CharEntity '>'
500 h8_id.RawData '\n '
504 h8_id.EndTag '
'
510 h8_id.RawData '\n\n '
513 h8_id.StartTag ''
530 h8_id.RawData '\n line break'
535 h8_id.StartEndTag '
'
552 h8_id.RawData '\n line break'
557 h8_id.StartEndTag '
'
562 h8_id.RawData '\n '
566 h8_id.EndTag '
'
572 h8_id.RawData '\n\n '
577 h8_id.StartTag ''
610 h8_id.StartTag ''
685 h8_id.RawData '$ echo one\none\nbash$ echo two\ntwo\n~/git/oilshell/oil$ echo three\nthree\n '
692 h8_id.EndTag '
'
698 h8_id.EndTag '
'
704 h8_id.RawData '\n\n '
709 h8_id.StartEndTag '
'
713 h8_id.RawData '\n\n '
720 h8_id.EndTag ''
721 h8_id.RawData '\n'
728 h8_id.EndTag ''
729 h8_id.RawData '\n'
729 h8_id.EndOfStream ''
.12 h8_id.RawData '\n hi '
50 h8_id.Comment ''
55 h8_id.StartEndTag '
'
55 h8_id.EndOfStream ''
.1 h8_id.RawData 'a'
2 h8_id.EndOfStream '\x00'
.6 h8_id.CharEntity '&ent1;'
8 h8_id.RawData ', '
14 h8_id.CharEntity '&ent2;'
15 h8_id.RawData '!'
15 h8_id.EndOfStream ''
.3 h8_id.RawData 'hi '
12 h8_id.Processing ' err ?>'
12 h8_id.EndOfStream ''
..12 h8_id.RawData '\n hi '
27 h8_id.StartTag ''
96 h8_id.RawData '\n '
96 h8_id.EndOfStream ''
12 h8_id.RawData '\n hi '
27 h8_id.StartTag ''
96 h8_id.RawData '\n '
96 h8_id.EndOfStream ''
.3 h8_id.RawData 'hi '
18 h8_id.StartTag ''
33 h8_id.EndOfStream ''
.3 h8_id.StartTag ''
5 h8_id.RawData 'hi'
9 h8_id.EndTag ''
9 h8_id.EndOfStream ''
3 h8_id.StartTag ''
11 h8_id.StartTag ''
27 h8_id.EndTag ''
27 h8_id.EndOfStream ''
...
----------------------------------------------------------------------
Ran 30 tests in 0.003s
OK
(LexError 'ReadValue() got invalid token (DQ)' '>')
-1
-1
h8_id.Invalid rule should have matched ''
(LexError 'ReadValue() got invalid token (SQ)' '>')
(LexError 'AllAttrsRaw() got invalid token' ' !>')
1
2
3
4
'&'
'>'
'"0" && value<"10" ?"valid":"error"]]>'
'\n\n \n\n \n Pulp Testdata\n\n \n\n \n\n \n\n \n directive\n ?>\n\n \n my span\n Link\n\n Link\n\n Link\n\n
\n\n \n this & that and mu = μ\n
\n\n \n <not a tag>\n
\n\n \n line break
\n line break
\n
\n\n $ echo one\none\nbash$ echo two\ntwo\n~/git/oilshell/oil$ echo three\nthree\n
\n\n
\n\n \n\n'
'\n hi
'
'a\x00b'
'&ent1;, &ent2;!'
'hi err ?>'
'\n hi \n '
'\n hi \n '
'hi '
'hi'
''
('empty', None, None, 'val')
None
<_sre.SRE_Match object at 0x7f36bf895988>
<_sre.SRE_Match object at 0x7f36bf895988>
Negation
<_sre.SRE_Match object at 0x7f36bf895988>