'Will return the available private keys in the data directory, ignoring
key files which failed to be loaded.'

def test_getPrivateKeys(self):

    keys = self.factory.getPrivateKeys()
    self.assertEqual(len(keys), 2)
    keyTypes = keys.keys()
    self.assertEqual(set(keyTypes), set(['ssh-rsa', 'ssh-dss']))
    self.assertEqual(self.mockos.seteuidCalls, [])
    self.assertEqual(self.mockos.setegidCalls, [])
