<s> from django . test import TestCase <EOL> from django . utils import six <EOL> from oscar . apps . offer . models import Benefit <EOL> from oscar . test import factories <EOL> class TestBenefitProxyModels ( TestCase ) : <EOL> def test_name_and_description ( self ) : <EOL> """<STR_LIT>""" <EOL> range = factories . RangeFactory ( ) <EOL> for type , __ in Benefit . TYPE_CHOICES : <EOL> benefit = Benefit ( type = type , range = range ) <EOL> self . assertTrue ( all ( [ <EOL> benefit . name , <EOL> benefit . description , <EOL> six . text_type ( benefit ) ] ) ) </s>
