2014-03-14 03:07:15 +00:00
|
|
|
from __future__ import with_statement
|
|
|
|
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
import sys
|
2014-03-25 05:57:24 +00:00
|
|
|
import datetime
|
2014-03-14 03:07:15 +00:00
|
|
|
import os.path
|
2014-03-25 05:57:24 +00:00
|
|
|
import string
|
|
|
|
|
2014-03-14 03:07:15 +00:00
|
|
|
sys.path.append(os.path.abspath('..'))
|
2014-03-14 17:15:02 +00:00
|
|
|
sys.path.append(os.path.abspath('../../../lib'))
|
2014-03-14 03:07:15 +00:00
|
|
|
|
2014-03-25 05:57:24 +00:00
|
|
|
import sickbeard
|
2014-03-14 03:07:15 +00:00
|
|
|
|
|
|
|
class APICheck(unittest.TestCase):
|
2014-03-26 19:28:46 +00:00
|
|
|
indexer_id = 2930
|
2014-03-16 11:06:21 +00:00
|
|
|
lang = "en"
|
2014-03-14 03:07:15 +00:00
|
|
|
|
2014-04-02 05:44:47 +00:00
|
|
|
lINDEXER_API_PARMS = sickbeard.indexerApi(2).api_params.copy()
|
|
|
|
t = sickbeard.indexerApi(2).indexer(**lINDEXER_API_PARMS)
|
|
|
|
epObj = t[2930]
|
|
|
|
print epObj
|
2014-03-14 03:07:15 +00:00
|
|
|
|
2014-03-25 05:57:24 +00:00
|
|
|
if __name__ == "__main__":
|
|
|
|
unittest.main()
|