#NEWLINE# def test__next_channel_number_all_used_either_channels_or_bad( self ) : #NEWLINE# #INDENT# for x in xrange ( 1 , 26 ) : #NEWLINE# #INDENT# if ( x % 2 ) : #NEWLINE# #INDENT# self . conn . _channels [ x ] = sentinel . any #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . conn . mark_bad_channel ( x ) #NEWLINE# #UNINDENT# #UNINDENT# self . assertRaises ( NoFreeChannels , self . conn . _next_channel_number )