Qt: Add check for pubkeyAlgo in t-keylist
authorAndre Heinecke <aheinecke@intevation.de>
Wed, 6 Jul 2016 11:39:43 +0000 (13:39 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Wed, 6 Jul 2016 11:39:43 +0000 (13:39 +0200)
* lang/qt/tests/t-keylist.cpp (testSingleKeyListSync): Check
pubkeyAlgo.

lang/qt/tests/t-keylist.cpp

index 5d63fca..591a552 100644 (file)
@@ -58,6 +58,10 @@ private Q_SLOTS:
         Q_ASSERT (keys.size() == 1);
         const QString kId = QLatin1String(keys.front().keyID());
         Q_ASSERT (kId == QStringLiteral("2D727CC768697734"));
+
+        Q_ASSERT (keys[0].subkeys().size() == 2);
+        Q_ASSERT (keys[0].subkeys()[0].publicKeyAlgorithm() == Subkey::AlgoDSA);
+        Q_ASSERT (keys[0].subkeys()[1].publicKeyAlgorithm() == Subkey::AlgoELG_E);
     }
 
     void testKeyListAsync()