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)
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)