#NEWLINE# def test_live_notification( self ) : #NEWLINE# #INDENT# fake_sender = CommandSubmitter ( 'test' , 'fake_sender' ) #NEWLINE# fake_sender2 = CommandSubmitter ( 'test' , 'fake_sender2' ) #NEWLINE# self . sublist = { #NEWLINE# #INDENT# fake_sender : [ 'testch1' ] , #NEWLINE# fake_sender2 : [ 'testch2' ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . checker . start ( ) #NEWLINE# threading . Event ( ) . wait ( 1 ) #NEWLINE# self . checker . refresh ( ) #NEWLINE# threading . Event ( ) . wait ( 1 ) #NEWLINE# ok_ ( ( len ( interfaces . get ( 'test' ) . msg_queue [ fake_sender ] ) == 0 ) ) #NEWLINE# ok_ ( ( len ( interfaces . get ( 'test' ) . msg_queue [ fake_sender2 ] ) == 0 ) ) #NEWLINE# self . twitch . live_ch_list = { #NEWLINE# #INDENT# 'TESTCH1' : { #NEWLINE# #INDENT# 'status' : 'test_status' , #NEWLINE# 'game' : 'test_game' , #NEWLINE# 'url' : 'test_url' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . checker . refresh ( ) #NEWLINE# threading . Event ( ) . wait ( 1 ) #NEWLINE# self . checker . stop ( ) #NEWLINE# ok_ ( ( 'TESTCH1' in ' ' . join ( interfaces . get ( 'test' ) . msg_queue [ fake_sender ] ) ) , interfaces . get ( 'test' ) . msg_queue [ fake_sender ] ) #NEWLINE# ok_ ( ( 'TESTCH1' not in ' ' . join ( interfaces . get ( 'test' ) . msg_queue [ self ] ) ) , interfaces . get ( 'test' ) . msg_queue [ fake_sender2 ] )