本文整理汇总了Python中sickbeard.tv.TVEpisode.proper_path方法的典型用法代码示例。如果您正苦于以下问题:Python TVEpisode.proper_path方法的具体用法?Python TVEpisode.proper_path怎么用?Python TVEpisode.proper_path使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sickbeard.tv.TVEpisode
的用法示例。
在下文中一共展示了TVEpisode.proper_path方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: PPPrivateTests
# 需要导入模块: from sickbeard.tv import TVEpisode [as 别名]
# 或者: from sickbeard.tv.TVEpisode import proper_path [as 别名]
class PPPrivateTests(test.SickbeardTestDBCase):
def setUp(self):
super(PPPrivateTests, self).setUp()
sickbeard.showList = [TVShow(1,0000), TVShow(1,0001)]
self.pp = PostProcessor(test.FILEPATH)
self.show_obj = TVShow(1,0002)
self.db = test.db.DBConnection()
newValueDict = {"indexerid": 1002,
"name": test.SHOWNAME,
"description": "description",
"airdate": 1234,
"hasnfo": 1,
"hastbn": 1,
"status": 404,
"location": test.FILEPATH}
controlValueDict = {"showid": 0002,
"season": test.SEASON,
"episode": test.EPISODE}
# use a custom update/insert method to get the data into the DB
self.db.upsert("tv_episodes", newValueDict, controlValueDict)
self.ep_obj = TVEpisode(self.show_obj, test.SEASON, test.EPISODE, test.FILEPATH)
print
def test__find_ep_destination_folder(self):
self.show_obj.location = test.FILEDIR
self.ep_obj.show.seasonfolders = 1
sickbeard.SEASON_FOLDERS_FORMAT = 'Season %02d'
calculatedPath = self.ep_obj.proper_path()
expectedPath = os.path.join(test.FILEDIR, "Season 0" + str(test.SEASON))
self.assertEqual(calculatedPath, expectedPath)