Import modified tests from #1258
Import modified tests from #1258

Needed to change the test/mock pattern re: ensuring static private key value
to be compared against, but seems to work out.

paramiko/paramiko,ameily/paramiko