def test_dehydrate_rating_language(self): with self.tower_activate('es'): rating = ratingsbodies.dehydrate_rating(ratingsbodies.ESRB_T) eq_(rating.name, 'Adolescente') with self.tower_activate('fr'): rating = ratingsbodies.dehydrate_rating(ratingsbodies.ESRB_T) eq_(rating.name, 'Adolescents') rating = ratingsbodies.dehydrate_rating(ratingsbodies.ESRB_T) eq_(rating.name, 'Teen')
def test_dehydrate_rating(self): self.create_switch('iarc') for rating in ratingsbodies.ALL_RATINGS(): rating = ratingsbodies.dehydrate_rating(rating) assert isinstance(rating.name, unicode), rating assert rating.label and rating.label != str(None), rating
def test_dehydrate_rating(self): self.create_switch('iarc') for rating in ratingsbodies.ALL_RATINGS(): rating = ratingsbodies.dehydrate_rating(rating) assert isinstance(rating.name, unicode) assert rating.label assert isinstance(rating.description, unicode)
def test_dehydrate_rating(self): for rating in ratingsbodies.ALL_RATINGS(): rating = ratingsbodies.dehydrate_rating(rating) assert isinstance(rating.name, unicode), rating assert rating.label and rating.label != str(None), rating