def test_inline_dictionary():
 assert (hug.types.inline_dictionary('1:2') == {'1': '2'})
 assert (hug.types.inline_dictionary('1:2|3:4') == {'1': '2', '3': '4'})
 with pytest.raises(ValueError):
  hug.types.inline_dictionary('1')

def test_inline_dictionary ( ) : assert ( hug . types . inline_dictionary ( '1:2' ) == { '1' : '2' } ) assert ( hug . types . inline_dictionary ( '1:2|3:4' ) == { '1' : '2' , '3' : '4' } ) with pytest . raises ( ValueError ) : hug . types . inline_dictionary ( '1' )
tests that inline dictionary values are correctly handled .