#NEWLINE# def test_HALNavigator__get_by_properties_multi( bigtest_1 ) : #NEWLINE# #INDENT# with httprettify ( ) as HTTPretty : #NEWLINE# #INDENT# register_hal ( bigtest_1 . index_uri , bigtest_1 . index_links ) #NEWLINE# N = HN . Navigator . hal ( bigtest_1 . index_uri ) #NEWLINE# bar = N . links ( ) [ 'test:foo' ] . get_by ( 'name' , 'bar' ) #NEWLINE# baz = N . links ( ) [ 'test:foo' ] . get_by ( 'name' , 'baz' ) #NEWLINE# qux = N . links ( ) [ 'test:foo' ] . get_by ( 'name' , 'qux' ) #NEWLINE# bazs = N . links ( ) [ 'test:foo' ] . getall_by ( 'name' , 'baz' ) #NEWLINE# assert ( bazs == [ baz ] ) #NEWLINE# not_founds = N . links ( ) [ 'test:foo' ] . getall_by ( 'name' , 'not_founds' ) #NEWLINE# assert ( not_founds == [ ] ) #NEWLINE# widgets = N . links ( ) [ 'test:foo' ] . getall_by ( 'profile' , bigtest_1 . widget_profile ) #NEWLINE# gadgets = N . links ( ) [ 'test:foo' ] . getall_by ( 'profile' , bigtest_1 . gadget_profile ) #NEWLINE# assert ( widgets == [ bar , qux ] ) #NEWLINE# assert ( gadgets == [ baz ] )