diff options
author | rsiddharth <s@ricketyspace.net> | 2017-06-04 23:22:48 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2017-06-04 23:22:48 +0000 |
commit | f57643a70dfe7949e398c620a2a33e9167be5c70 (patch) | |
tree | d5ef4424af2726fa54deca17aa1dcbe1a767cc49 | |
parent | 626ff419f36a8fe7e310346296e61486357b3055 (diff) |
tests: Add test_mdl_style._get_data_path.
* tests/test_mdl_style.py (_get_data_path): New function.
-rw-r--r-- | tests/test_mdl_style.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_mdl_style.py b/tests/test_mdl_style.py index c646d60..2aacf86 100644 --- a/tests/test_mdl_style.py +++ b/tests/test_mdl_style.py @@ -20,7 +20,7 @@ from mistune import Renderer, Markdown from nose.tools import * -from pkg_resources import resource_string +from pkg_resources import resource_string, resource_filename from mdl_style import * @@ -29,6 +29,9 @@ def _get_data(f): rs = resource_string(__name__, '/'.join(['data', f])) return rs.decode() +def _get_data_path(f): + return resource_filename(__name__, '/'.join(['data', f])) + class TestLSRendererIL(object): """Test class for mdl_style.LSRenderer inline link style. |