From b00eba064a92f1882c0af04433c683db12ae82a7 Mon Sep 17 00:00:00 2001 From: dbr Date: Sat, 26 Mar 2011 16:27:03 +1030 Subject: [PATCH] Test for pull request #27, search by absolute episode number --- tests/test_configfunctional.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/test_configfunctional.py b/tests/test_configfunctional.py index b68282d..c0cbc09 100644 --- a/tests/test_configfunctional.py +++ b/tests/test_configfunctional.py @@ -142,3 +142,21 @@ def test_abs_epnmber(): verify_out_data(out_data, expected_files) + +@attr("functional") +def test_abs_epnmber(): + """Test resolving by absolute episode number + """ + + conf = """ + {"always_rename": true, + "select_first": true} + """ + + out_data = run_tvnamer( + with_files = ['[Bleachverse]_BLEACH_310.avi'], + with_config = conf) + + expected_files = ['Scrubs - 01.avi'] + + verify_out_data(out_data, expected_files)