<s> import unittest <EOL> from django_enumfield . tests . models import BeerStyle <EOL> from django_enumfield . validators import validate_available_choice <EOL> from django_enumfield . exceptions import InvalidStatusOperationError <EOL> class ValidatorTest ( unittest . TestCase ) : <EOL> def test_validate_available_choice_1 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertRaises ( <EOL> InvalidStatusOperationError , <EOL> validate_available_choice , <EOL> * ( BeerStyle , '<STR_LIT>' ) <EOL> ) <EOL> def test_validate_available_choice_2 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIsNone ( <EOL> validate_available_choice ( BeerStyle , '<STR_LIT:%s>' % BeerStyle . LAGER ) <EOL> ) <EOL> def test_validate_available_choice_3 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIsNone ( <EOL> validate_available_choice ( BeerStyle , BeerStyle . LAGER ) <EOL> ) </s>
