Fix general names leak

removing the hasattr statement so that test will fail if cryptography module isn't upgraded.