# File specs/keys_spec.rb, line 21
def check_key(the_key, key_name = "")
  the_key.should_not be_nil
  the_key.id.should be_a(String)
  the_key.id.should eql(key_name)
  the_key.actions.should_not be_nil
  the_key.actions.size.should eql(1)
  the_key.actions.first[0].should eql("destroy")
  the_key.actions.first[1].should eql("#{API_URL}/keys/#{key_name}")
  the_key.fingerprint.should_not be_nil
  the_key.fingerprint.should be_a(String)
  the_key.pem.should_not be_nil
  the_key.pem.first.should be_a(String)
end