- expected_result = 'OEgsToPDskLQUAntWWpzhEMhBMlgqHdo'
- actual_result = yt.send('parse_t_parameter', page_data)
+ def test_get_video_filename
+ yt = Youtube.new('http://www.youtube.com/watch?v=SudixyugiX4')
+ expected_result = 'SudixyugiX4.flv'
+ actual_result = yt.get_video_filename()
+ assert_equal(expected_result, actual_result)
+ end
+
+
+ def test_get_video_filename_again
+ yt = Youtube.new('http://www.youtube.com/watch?v=K9iDMcmm0tE')
+ expected_result = 'K9iDMcmm0tE.flv'
+ actual_result = yt.get_video_filename()