Ejemplo n.º 1
0
 def test_specialReplace_elUpdate1EmptyField_1remainsUnchanged(self):
     movie = Movie(1, 'Frozen', 'Ice queen with magical powers',
                   'Animation')
     self.__movieUpdate_emptyField = Movie(1, 'Frozen 3', '', 'Family')
     movie.special_replace(self.__movieUpdate_emptyField)
     self.assertEqual(movie.get_title(), 'Frozen 3')
     self.assertEqual(movie.get_description(),
                      'Ice queen with magical powers')
     self.assertEqual(movie.get_genre(), 'Family')
Ejemplo n.º 2
0
 def test_init_movie_getProperties(self):
     movie = Movie(1, 'Frozen', 'Ice queen with magical powers',
                   'Animation')
     self.__valid_movie = movie
     self.assertEqual(movie.get_id(), 1)
     self.assertEqual(movie.get_title(), 'Frozen')
     self.assertEqual(movie.get_description(),
                      'Ice queen with magical powers')
     self.assertEqual(movie.get_genre(), 'Animation')