summaryrefslogtreecommitdiffstats
path: root/tests/test_md_tw.py
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-02-18 16:47:45 +0000
committerrsiddharth <s@ricketyspace.net>2018-02-18 16:53:57 +0000
commit88c3c986da5bd1550db9f4b5e59491068e4e1896 (patch)
treef147f140841f4aed3d6beca24082ed37561c47bb /tests/test_md_tw.py
parent7f6c9ef2bb7d5899aaba83446092c38e49878c55 (diff)
md_tw.py: Rename TWRenderer._tw_set_options method.
* md_tw.py (TWRenderer)[_tw_set_options]: Remove method. [tw_set]: New method. * tests/test_md_tw.py(TestTWRenderer) [test_tw_set_options_with_valid_opts]: Remove test. [test_tw_set_with_valid_opts]: Add test. [test_tw_set_options_with_invalid_opts]: Remove test. [test_tw_set_with_invalid_opts]: Add test.
Diffstat (limited to 'tests/test_md_tw.py')
-rw-r--r--tests/test_md_tw.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_md_tw.py b/tests/test_md_tw.py
index 780c0c7..ccdd016 100644
--- a/tests/test_md_tw.py
+++ b/tests/test_md_tw.py
@@ -757,11 +757,11 @@ class TestTWRenderer(object):
nose_tools.assert_equal(renderer.tw.width, 80)
- def test_tw_set_options_with_valid_opts(self):
+ def test_tw_set_with_valid_opts(self):
renderer = TWRenderer()
# Set valid options
- renderer._tw_set_options(
+ renderer.tw_set(
width=80,
initial_indent='> ',
subsequent_indent=' ',
@@ -774,11 +774,11 @@ class TestTWRenderer(object):
nose_tools.assert_equal(renderer.tw.drop_whitespace, False)
- def test_tw_set_options_with_invalid_opts(self):
+ def test_tw_set_with_invalid_opts(self):
renderer = TWRenderer()
# Set invalid options
- renderer._tw_set_options(
+ renderer.tw_set(
erase_bumps=True,
destroy_ampersands=False,
end_width='வருகிறேன்',