diff --git a/tests/test_lists.py b/tests/test_lists.py index 8ab27eb..bb7c1ce 100644 --- a/tests/test_lists.py +++ b/tests/test_lists.py @@ -33,8 +33,8 @@ def test_nested_list(): expect = '\t
    \n\t\t
  1. test\n\t\t
      \n\t\t\t
    1. another one\n\t\t\t
        \n\t\t\t\t
      • point one
      • \n\t\t\t\t
      • point two
      • \n\t\t\t
    2. \n\t\t\t
    3. moar item
    4. \n\t\t
  2. \n\t
' assert result == expect - l = List('ol', indent_level=1) - l.add_item('li', 'test') + lst = List('ol', indent_level=1) + lst.add_item('li', 'test') s1 = List('ol', indent_level=2) s1.add_item('li', 'another one') s2 = List('ul', indent_level=3) @@ -42,7 +42,7 @@ def test_nested_list(): s2.add_item('li', 'point two') s1.add_item('li', s2) s1.add_item('li', 'moar item') - l.add_item('li', s1) - result = l.process() + lst.add_item('li', s1) + result = lst.process() expect = '\t
    \n\t\t
  1. test\n\t\t
      \n\t\t\t
    1. another one\n\t\t\t
        \n\t\t\t\t
      • point one
      • \n\t\t\t\t
      • point two
      • \n\t\t\t
    2. \n\t\t\t
    3. moar item
    4. \n\t\t
  2. \n\t
' assert result == expect