#NEWLINE# def test__next_channel_number_existing_channels( self ) : #NEWLINE# #INDENT# self . conn . _channels [ 1 ] = sentinel . chan1 #NEWLINE# self . conn . _channels [ 2 ] = sentinel . chan2 #NEWLINE# self . conn . _channels [ 5 ] = sentinel . chan3 #NEWLINE# new_ch_num = self . conn . _next_channel_number ( ) #NEWLINE# self . assertEquals ( new_ch_num , 3 ) #NEWLINE# self . conn . _channels [ new_ch_num ] = sentinel . any #NEWLINE# new_ch_num = self . conn . _next_channel_number ( ) #NEWLINE# self . assertEquals ( new_ch_num , 4 ) #NEWLINE# self . conn . _channels [ new_ch_num ] = sentinel . any #NEWLINE# new_ch_num = self . conn . _next_channel_number ( ) #NEWLINE# self . assertEquals ( new_ch_num , 6 ) #NEWLINE# self . conn . _channels [ new_ch_num ] = sentinel . any