#NEWLINE# def test_ensures_public_keys_are_loaded( self ) : #NEWLINE# #INDENT# start_date = START_DATE #NEWLINE# end_date = END_DATE #NEWLINE# digest_provider = Mock ( ) #NEWLINE# key_provider = Mock ( ) #NEWLINE# key_provider . get_public_keys . return_value = [ ] #NEWLINE# traverser = DigestTraverser ( digest_provider = digest_provider , starting_bucket = '1' , starting_prefix = 'baz' , public_key_provider = key_provider ) #NEWLINE# digest_iter = traverser . traverse ( start_date , end_date ) #NEWLINE# with self . assertRaises ( RuntimeError ) : #NEWLINE# #INDENT# next ( digest_iter ) #NEWLINE# #UNINDENT# key_provider . get_public_keys . assert_called_with ( start_date , end_date )