#NEWLINE# def test_socket_set_with_unsupported_family( self ) : #NEWLINE# #INDENT# sock = MagicMock ( ) #NEWLINE# sock . family = 9001 #NEWLINE# self . assertRaises ( ValueError , sock . channel . _socket_set , sock )