Refactored attribute test to deal with new types.
Refactored attribute test to deal with new types.

jtwatson/sftp,ScriptRock/sftp,akupas/sftp,fuchsia-mirror/third_party-github.com-pkg-sftp,DrJosh9000/sftp,pkg/sftp,fuchsia-mirror/third_party-pkg-sftp