#NEWLINE# def test_factory_raises_when_version_missing( self ) : #NEWLINE# #INDENT# settings_dict = SAMPLE_SETTINGS #NEWLINE# del self [ 'version' ] #NEWLINE# with self . assertRaises ( Exception ) : #NEWLINE# #INDENT# settings . Settings . factory ( settings_dict )