<s> from django import test <EOL> from select2_generic_m2m . test_forms import GenericSelect2TestMixin <EOL> from . forms import TestForm <EOL> from . models import TestModel <EOL> class GM2MFormTest ( GenericSelect2TestMixin , test . TestCase ) : <EOL> model = TestModel <EOL> form = TestForm <EOL> url_name = '<STR_LIT>' <EOL> def add_relations ( self , fixture , relations ) : <EOL> fixture . test = relations <EOL> def assert_relation_equals ( self , expected , result ) : <EOL> self . assertEquals ( len ( expected ) , len ( result ) ) <EOL> for o in result : <EOL> self . assertIn ( o , expected ) </s>
