2014-04-24 07:52:44 -04:00
|
|
|
# coding=UTF-8
|
|
|
|
# Author: Dennis Lutter <lad1337@gmail.com>
|
|
|
|
# URL: http://code.google.com/p/sickbeard/
|
|
|
|
#
|
|
|
|
# This file is part of Sick Beard.
|
|
|
|
#
|
|
|
|
# Sick Beard is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# Sick Beard is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with Sick Beard. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
from __future__ import with_statement
|
|
|
|
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
import sys, os.path
|
|
|
|
sys.path.append(os.path.abspath('..'))
|
|
|
|
sys.path.append(os.path.abspath('../lib'))
|
|
|
|
|
2014-04-25 19:41:40 -04:00
|
|
|
from lib.feedparser import feedparser
|
2014-04-24 07:52:44 -04:00
|
|
|
|
|
|
|
class APICheck(unittest.TestCase):
|
2014-04-25 19:41:40 -04:00
|
|
|
data = feedparser.parse('http://pirateproxy.net/tv/latest/')
|
2014-04-24 07:52:44 -04:00
|
|
|
|
|
|
|
lang = "en"
|
2014-04-25 17:22:31 -04:00
|
|
|
search_term = 'Gold Rush South America'
|
2014-04-24 07:52:44 -04:00
|
|
|
|
|
|
|
results = {}
|
|
|
|
final_results = []
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
unittest.main()
|