#NEWLINE# @ mock_route53 #NEWLINE# def test_hosted_zone_comment_preserved( ) : #NEWLINE# #INDENT# conn = boto . connect_route53 ( 'the_key' , 'the_secret' ) #NEWLINE# firstzone = conn . create_hosted_zone ( 'testdns.aws.com.' , comment = 'test comment' ) #NEWLINE# zone_id = firstzone [ 'CreateHostedZoneResponse' ] [ 'HostedZone' ] [ 'Id' ] . split ( '/' ) [ ( - 1 ) ] #NEWLINE# hosted_zone = conn . get_hosted_zone ( zone_id ) #NEWLINE# hosted_zone [ 'GetHostedZoneResponse' ] [ 'HostedZone' ] [ 'Config' ] [ 'Comment' ] . should . equal ( 'test comment' ) #NEWLINE# hosted_zones = conn . get_all_hosted_zones ( ) #NEWLINE# hosted_zones [ 'ListHostedZonesResponse' ] [ 'HostedZones' ] [ 0 ] [ 'Config' ] [ 'Comment' ] . should . equal ( 'test comment' ) #NEWLINE# zone = conn . get_zone ( 'testdns.aws.com.' ) #NEWLINE# zone . config [ 'Comment' ] . should . equal ( 'test comment' )