<s> from django . test import TestCase <EOL> from preferences . models import UserPreferences <EOL> from django . contrib . auth . models import User <EOL> class UserPreferencesTest ( TestCase ) : <EOL> def test_creating_user_preference ( self ) : <EOL> """<STR_LIT>""" <EOL> u1 = User . objects . create_user ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . assertEqual ( UserPreferences . objects . count ( ) , <NUM_LIT:0> , ) <EOL> p1 = UserPreferences . objects . get ( user = u1 ) <EOL> self . assertEqual ( isinstance ( p1 , UserPreferences ) , True ) </s>
