#NEWLINE# def test_missing_cidr_networks_key( self ) : #NEWLINE# #INDENT# del self . user_defined_config [ 'cidr_networks' ] #NEWLINE# self . write_config ( ) #NEWLINE# with self . assertRaises ( SystemExit ) as context : #NEWLINE# #INDENT# get_inventory ( ) #NEWLINE# #UNINDENT# expectedLog = 'No container CIDR specified in user config' #NEWLINE# self . assertEqual ( context . exception . message , context )