File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,16 @@ def test_nested_list():
33
33
expect = '\t <ol>\n \t \t <li>test\n \t \t <ol>\n \t \t \t <li>another one\n \t \t \t <ul>\n \t \t \t \t <li>point one</li>\n \t \t \t \t <li>point two</li>\n \t \t \t </ul></li>\n \t \t \t <li>moar item</li>\n \t \t </ol></li>\n \t </ol>'
34
34
assert result == expect
35
35
36
- l = List ('ol' , indent_level = 1 )
37
- l .add_item ('li' , 'test' )
36
+ lst = List ('ol' , indent_level = 1 )
37
+ lst .add_item ('li' , 'test' )
38
38
s1 = List ('ol' , indent_level = 2 )
39
39
s1 .add_item ('li' , 'another one' )
40
40
s2 = List ('ul' , indent_level = 3 )
41
41
s2 .add_item ('li' , 'point one' )
42
42
s2 .add_item ('li' , 'point two' )
43
43
s1 .add_item ('li' , s2 )
44
44
s1 .add_item ('li' , 'moar item' )
45
- l .add_item ('li' , s1 )
46
- result = l .process ()
45
+ lst .add_item ('li' , s1 )
46
+ result = lst .process ()
47
47
expect = '\t <ol>\n \t \t <li>test\n \t \t <ol>\n \t \t \t <li>another one\n \t \t \t <ul>\n \t \t \t \t <li>point one</li>\n \t \t \t \t <li>point two</li>\n \t \t \t </ul></li>\n \t \t \t <li>moar item</li>\n \t \t </ol></li>\n \t </ol>'
48
48
assert result == expect
You can’t perform that action at this time.
0 commit comments