def test_movie_offset_2(self): avg = 2.73 movie = 4.73 x = 0.0 x = netflix_movie_offset(avg, movie) actual = movie - avg self.assert_(type(x) is float) self.assert_(type(actual) is float) self.assert_(x == actual)
def test_movie_offset_1(self): avg = 3.0 movie = 4.0 x = 0.0 x = netflix_movie_offset(avg, movie) actual = 1.0 self.assert_(type(x) is float) self.assert_(type(actual) is float) self.assert_(x == actual)
def test_movie_offset_3(self): avg = 1.34 movie = 3.45 x = 0.0 x = netflix_movie_offset(avg, movie) actual = movie - avg self.assert_(type(x) is float) self.assert_(type(actual) is float) self.assert_(x == actual)