X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=test%2Fveoh_test.rb;h=3ae9fb4ff0b47e778929138b565fc20fe259ae5a;hb=HEAD;hp=f28229a5a1debb85999d312f45a35d939120a9fa;hpb=a2db80e86e587d5e4e89a02a56439e6c39cdebdf;p=dead%2Fwhatever-dl.git diff --git a/test/veoh_test.rb b/test/veoh_test.rb index f28229a..3ae9fb4 100644 --- a/test/veoh_test.rb +++ b/test/veoh_test.rb @@ -17,7 +17,7 @@ # require 'test/unit' -require 'src/websites/veoh' +require 'whatever-dl/websites/veoh' class VeohTest < Test::Unit::TestCase @@ -48,6 +48,13 @@ class VeohTest < Test::Unit::TestCase assert_equal('v19568793XZq2SRzZ', video_id) end + + def test_parse_fifth_video_id + v = Veoh.new('http://www.veoh.com/collection/Keith-Anderson-Music-Videos/watch/v13890200h98YShYN') + video_id = v.send('parse_video_id') + assert_equal('v13890200h98YShYN', video_id) + end + def test_parse_redirect_url v = Veoh.new(nil) @@ -87,6 +94,7 @@ class VeohTest < Test::Unit::TestCase assert(Veoh.owns_url?('http://www.veoh.com/videos/v15795090Z6mZAbSq')) assert(Veoh.owns_url?('http://www.veoh.com/group/suggested-anime-w1st-episodes/?source=homepageList#watch%3Dv19961527w773Qq5G')) assert(Veoh.owns_url?('http://www.veoh.com/browse/videos/category/anime/watch/v19568793XZq2SRzZ')) + assert(Veoh.owns_url?('http://www.veoh.com/collection/Keith-Anderson-Music-Videos/watch/v13890200h98YShYN')) end end