From f07e6a3538c22f5b88b9ca20ad5bb6dc216ead80 Mon Sep 17 00:00:00 2001 From: Billy Earney Date: Wed, 22 Feb 2017 12:36:07 -0600 Subject: [PATCH] add test for PR306 --- tests/test_issues.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_issues.py b/tests/test_issues.py index f3b4e4dfe..c00f3388b 100644 --- a/tests/test_issues.py +++ b/tests/test_issues.py @@ -34,3 +34,13 @@ def test_download_media(capsys): def test_issue_145(): with pytest.raises(Exception, message="Expecting Exception"): _final = concatenation([knights10], method = 'composite') + +def test_PR_306(): + assert TextClip.list('font') != [] + assert TextClip.list('color') != [] + + with pytest.raises(Exception, message="Expecting Exception"): + TextClip.list('blah') + +if __name__ == '__main__': + pytest.main()