'Test that fromFile works correctly.'

def test_fromFile(self):

    self.assertEqual(keys.Key.fromFile(self.keyFile), keys.Key.fromString(keydata.privateRSA_lsh))
    self.assertRaises(keys.BadKeyError, keys.Key.fromFile, self.keyFile, 'bad_type')
    self.assertRaises(keys.BadKeyError, keys.Key.fromFile, self.keyFile, passphrase='unencrypted')
