def test_get_imdb_data_existence(): for filename, moviename, _ in movies1: res = DBbuilder.get_imdb_data(moviename) assert(res is not None) print "" print filename, '->', res['Title'], res['Year'], res['Genre']
def test_get_imdb_data_existence(): for filename, moviename, _ in movies1: res = DBbuilder.get_imdb_data(moviename) assert res is not None print "" print filename, "->", res["Title"], res["Year"], res["Genre"]
def test_get_imdb_data_correctness(): for moviename, data in movies2: res = DBbuilder.get_imdb_data(moviename) assert((res['Title'], res['Year']) == data)
def test_get_imdb_data_correctness(): for moviename, data in movies2: res = DBbuilder.get_imdb_data(moviename) assert (res["Title"], res["Year"]) == data