@mock_ec2_deprecated
def test_invalid_parameter_tag_null():
    conn = boto.connect_ec2('the_key', 'the_secret')
    reservation = conn.run_instances(EXAMPLE_AMI_ID)
    instance = reservation.instances[0]
    with pytest.raises(EC2ResponseError) as cm:
        instance.add_tag('a key', None)
    cm.value.code.should.equal('InvalidParameterValue')
    cm.value.status.should.equal(400)
@mock_ec2_deprecated
def test_invalid_parameter_tag_null():
    conn = boto.connect_ec2('the_key', 'the_secret')
    reservation = conn.run_instances(EXAMPLE_AMI_ID)
    instance = reservation.instances[0]
    with pytest.raises(EC2ResponseError) as cm:
        instance.add_tag('a key', None)
    cm.value.code.should.equal('InvalidParameterValue')
    cm.value.status.should.equal(400)