@mock_autoscaling
def test_create_launch_configuration_defaults():
 conn = boto.connect_autoscale()
 config = LaunchConfiguration(name=u'tester', image_id=u'ami-abcd1234', instance_type=u'm1.small')
 conn.create_launch_configuration(config)
 launch_config = conn.get_all_launch_configurations()[0]
 launch_config.name.should.equal(u'tester')
 launch_config.image_id.should.equal(u'ami-abcd1234')
 launch_config.instance_type.should.equal(u'm1.small')
 launch_config.key_name.should.equal(u'')
 list(launch_config.security_groups).should.equal([])
 launch_config.user_data.should.equal('')
 launch_config.instance_monitoring.enabled.should.equal(u'false')
 launch_config.instance_profile_name.should.equal(None)
 launch_config.spot_price.should.equal(None)

@ mock_autoscaling def test_create_launch_configuration_defaults ( ) : conn = boto . connect_autoscale ( ) config = LaunchConfiguration ( name = u'tester' , image_id = u'ami-abcd1234' , instance_type = u'm1.small' ) conn . create_launch_configuration ( config ) launch_config = conn . get_all_launch_configurations ( ) [ 0 ] launch_config . name . should . equal ( u'tester' ) launch_config . image_id . should . equal ( u'ami-abcd1234' ) launch_config . instance_type . should . equal ( u'm1.small' ) launch_config . key_name . should . equal ( u'' ) list ( launch_config . security_groups ) . should . equal ( [ ] ) launch_config . user_data . should . equal ( '' ) launch_config . instance_monitoring . enabled . should . equal ( u'false' ) launch_config . instance_profile_name . should . equal ( None ) launch_config . spot_price . should . equal ( None )
test with the minimum inputs and check that all of the proper defaults are assigned for the other attributes .