#NEWLINE# @ mock . patch . object ( systemconfig , 'SCPreferencesCreate' ) #NEWLINE# def testInit( self , mock_scpc ) : #NEWLINE# #INDENT# 'Test SCPreferences init.' #NEWLINE# mock_scpc . return_value = 999 #NEWLINE# scp = systemconfig . SCPreferences ( ) #NEWLINE# self . assertEqual ( scp . session , 999 )