コード例 #1
0
    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')
コード例 #2
0
    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')
コード例 #3
0
ファイル: test_ratingsbodies.py プロジェクト: BIGGANI/zamboni
    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
コード例 #4
0
    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)
コード例 #5
0
    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