コード例 #1
0
    def test_dehydrate_ratings_body(self):

        for k, body in ratingsbodies.RATINGS_BODIES.iteritems():
            body = ratingsbodies.dehydrate_ratings_body(body)
            assert isinstance(body.name, unicode)
            assert body.label and body.label != str(None)
            assert isinstance(body.description, unicode)
コード例 #2
0
    def test_dehydrate_ratings_body(self):

        for k, body in ratingsbodies.RATINGS_BODIES.iteritems():
            body = ratingsbodies.dehydrate_ratings_body(body)
            assert isinstance(body.name, unicode)
            assert body.label and body.label != str(None)
            assert isinstance(body.description, unicode)
コード例 #3
0
    def test_dehydrate_ratings_body(self):
        self.create_switch('iarc')

        for k, body in ratingsbodies.RATINGS_BODIES.iteritems():
            body = ratingsbodies.dehydrate_ratings_body(body)
            assert isinstance(body.name, unicode)
            assert body.label
            assert isinstance(body.description, unicode)