runImportTest = function(info, done) {
    var key = readKey(info.baseName + '.asc');
    var fp =
        new Buffer(key.keyPacket.toKeyPacketInfo().fingerprint).toString('hex');
    if (info.expected_fingerprint != null) {
      assert.equal(fp, info.expected_fingerprint);
    }
    if (info.expected_uids != null) {
      assert.deepEqual(key.getUserIds(), info.expected_uids);
    }
    var subkeys = key.subKeys;
    if (info.expected_subkeys != null) {
      assert.equal(subkeys.length, info.expected_subkeys.length);
      subkeys.forEach(function(subkey, idx) {
        var expectedfp = info.expected_subkeys[idx].expected_fingerprint;
        if (expectedfp != null) {
          var subkeyfp = new Buffer(subkey.toKeyPacketInfo().fingerprint)
              .toString('hex');
          assert.equal(subkeyfp, expectedfp);
        }
      });
    }
    done();
  }
Reads a public key, and verifies the result against information
provided by the testcase.
@param {!Object} info The parsed json file with the test case info.
@param {function()} done A function to call once the test completes.