#NEWLINE# def test_list_users_no_user( self ) : #NEWLINE# #INDENT# config [ 'interface' ] [ 'test' ] = { #NEWLINE# #INDENT# 'admin_id' : 'test_admin' , #NEWLINE# #UNINDENT# } #NEWLINE# try : #NEWLINE# #INDENT# os . remove ( self . service . SUB_FILE ) #NEWLINE# #UNINDENT# except OSError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# self . service . start ( ) #NEWLINE# threading . Event ( ) . wait ( 0.1 ) #NEWLINE# self . service . stop ( ) #NEWLINE# fake_sender = CommandSubmitter ( 'test' , 'test_admin' ) #NEWLINE# self . service . _list_users ( [ ] , fake_sender ) #NEWLINE# ok_ ( ( len ( '' . join ( interfaces . get ( 'test' ) . msg_queue [ fake_sender ] ) ) > 0 ) )