#NEWLINE# def test_discover_master_sentinel_down( cluster , sentinel ) : #NEWLINE# #INDENT# cluster . nodes_down . add ( ( 'foo' , 26379 ) ) #NEWLINE# address = sentinel . discover_master ( 'mymaster' ) #NEWLINE# assert ( cluster == ( '127.0.0.1' , 6379 ) ) #NEWLINE# assert ( sentinel . sentinels [ 0 ] . id == ( 'bar' , 26379 ) )