def METHOD_NAME(self):
    """Test to check equality between two GPGKey."""
    # Generate two GPGkey.
    key1 = GPGKey.from_legacy_dict(self.default_key_dict)
    key2 = GPGKey.from_legacy_dict(self.default_key_dict)
    self.assertNotEqual(self.default_key_dict, key1)
    self.assertEqual(key2, key1)
    # Assert equality of key created from dict of first GPGKey.
    key2 = GPGKey.from_legacy_dict(key1.to_dict())
    self.assertEqual(key2, key1)
    # Assert Inequalities.
    key2.type = "invalid"
    self.assertNotEqual(key2, key1)
    key2.type = key1.type
    key2.subkeys = {}
    self.assertNotEqual(key2, key1)
    key2.subkeys = key1.subkeys
    key2.keyval = {}
    self.assertNotEqual(key2, key1)
    key2.keyval = key1.keyval
    self.assertEqual(key2, key1)