#NEWLINE# def test_broadcast_filter( ) : #NEWLINE# #INDENT# r = Ready ( 0 , LockSet ( 1 ) ) #NEWLINE# r . sign ( ( 'x' * 32 ) ) #NEWLINE# df = hdc_service . DuplicatesFilter ( ) #NEWLINE# assert ( r not in df ) #NEWLINE# assert df . update ( r ) #NEWLINE# assert ( not df . update ( r ) ) #NEWLINE# assert ( not df . update ( r ) ) #NEWLINE# assert ( r in df )