]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/blobdiff - test/youporn_test.rb
Made the output filename the responsibility of the website subclass.
[dead/whatever-dl.git] / test / youporn_test.rb
index d06743e4e569fe4f5ee913962d99e36daa48806b..24d86431124755cb54085294adbada1396d9222b 100644 (file)
@@ -24,8 +24,14 @@ require 'src/websites/youporn'
 
 class YoupornTest < Test::Unit::TestCase
 
+  def test_owns_youporn_urls
+    assert(Youporn.owns_url?('http://www.youporn.com/watch/65778'))
+    assert(Youporn.owns_url?('http://www.youporn.com/watch/61637/amateursoffie-fuckingagain-andtakinglo-ad/'))
+  end
+
+  
   def test_parse_video_url
-    yp = Youporn.new()
+    yp = Youporn.new(nil)
     
     page_data = nil