class TMDBSiteTest(TestCase): def setUp(self): self.site = TMDB(None) def test_login(self): self.assertIn(self.site.USERNAME, self.site.browser.page_source) def tearDown(self): self.site.kill_browser()
def __init__(self, args): super(TMDBRatingsParser, self).__init__(TMDB(args), args)
def setUp(self): self.site = TMDB(None)
def __init__(self, args): super(TMDBRatingsInserter, self).__init__(TMDB(args), args) self.url_for_csv_file_upload = self._get_url_for_csv_upload() self.css_id_of_file_input_element = 'csv_file' self.xpath_selector_for_submit_button = "//form[@name='import_csv']//input[@type='submit']"
def __init__(self, args): super(TMDBRatingsInserter, self).__init__(TMDB(args), args) self.url_for_csv_file_upload = 'https://www.themoviedb.org/account/StegSchreck/import' self.css_id_of_file_input_element = 'csv_file' self.xpath_selector_for_submit_button = "//form[@name='import_csv']//input[@type='submit']"