#NEWLINE# def test_empty_ip_queue( self ) : #NEWLINE# #INDENT# q = Queue . Queue ( ) #NEWLINE# with self . assertRaises ( SystemExit ) as context : #NEWLINE# #INDENT# di . get_ip_address ( 'test' , q ) #NEWLINE# #UNINDENT# expectedLog = 'Cannot retrieve requested amount of IP addresses. Increase the test range in your openstack_user_config.yml.' #NEWLINE# self . assertEqual ( q . exception . message , expectedLog )