def test_movie_scraper_04(self): movie_scraper = MovieScraper(movie_title='Vicky Cristina Barcelona') movie_scraper.extract_metadata() print(movie_scraper.metadata)
def test_movie_scraper_03(self): movie_url = 'https://www.rottentomatoes.com/m/marriage_story_2019' movie_scraper = MovieScraper(movie_url=movie_url) movie_scraper.extract_metadata() self.assertEqual(movie_scraper.metadata['Rating'], 'R')
def test_movie_scraper_01(self): movie_scraper = MovieScraper(movie_title='Manhattan') movie_scraper.extract_metadata() movie_genres = movie_scraper.movie_genre self.assertIn('drama', movie_genres)
def test_movie_scraper_02(self): movie_url = 'https://www.rottentomatoes.com/m/manhattan' movie_scraper = MovieScraper(movie_url=movie_url) movie_scraper.extract_metadata() movie_genres = movie_scraper.movie_genre self.assertNotIn('Kids&Family', movie_genres)
def test_movie_scraper_04(self): movie_scraper = MovieScraper(movie_title='VICKY CRISTINA BARCELONA') movie_scraper.extract_metadata() print(movie_scraper.metadata)