'Test that the transport accurately reflects its verified status.'

def test_isVerified(self):

    self.assertFalse(self.proto.isVerified('in'))
    self.assertFalse(self.proto.isVerified('out'))
    self.assertFalse(self.proto.isVerified('both'))
    self.proto.currentEncryptions = MockCipher()
    self.assertTrue(self.proto.isVerified('in'))
    self.assertTrue(self.proto.isVerified('out'))
    self.assertTrue(self.proto.isVerified('both'))
    self.proto.currentEncryptions = transport.SSHCiphers('none', 'none', 'none', 'none')
    self.assertFalse(self.proto.isVerified('in'))
    self.assertFalse(self.proto.isVerified('out'))
    self.assertFalse(self.proto.isVerified('both'))
    self.assertRaises(TypeError, self.proto.isVerified, 'bad')
