<s> from distutils . version import StrictVersion <EOL> from unittest import skipIf <EOL> import django <EOL> from django . test import TestCase <EOL> from django . contrib . admin . sites import AdminSite <EOL> from coupons . admin import CouponAdmin <EOL> from coupons . models import Coupon <EOL> class MockRequest ( object ) : <EOL> pass <EOL> request = MockRequest ( ) <EOL> class CouponAdminTestCase ( TestCase ) : <EOL> def setUp ( self ) : <EOL> self . site = AdminSite ( ) <EOL> @ skipIf ( StrictVersion ( django . get_version ( ) ) < StrictVersion ( '<STR_LIT>' ) , "<STR_LIT>" ) <EOL> def test_list_display ( self ) : <EOL> admin = CouponAdmin ( Coupon , self . site ) <EOL> self . assertEquals ( <EOL> list ( admin . get_fields ( request ) ) , <EOL> [ '<STR_LIT:value>' , '<STR_LIT:code>' , '<STR_LIT:type>' , '<STR_LIT:user>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> ) </s>
