comparison ui/tests/createcertlisttest.cpp @ 474:bcae22d57e67

Do not verify Msec equality on the DateTime. We only store seconds
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 23 Apr 2014 16:54:16 +0000
parents dd54c02fc28a
children 317ee9dc4684
comparison
equal deleted inserted replaced
473:9cd28df2c4ce 474:bcae22d57e67
47 pk_free(pk); 47 pk_free(pk);
48 48
49 CertificateList outputList = CertificateList(outputFile.fileName().toLocal8Bit().data()); 49 CertificateList outputList = CertificateList(outputFile.fileName().toLocal8Bit().data());
50 QVERIFY(outputList.isValid()); 50 QVERIFY(outputList.isValid());
51 QVERIFY(outputList.getCertificates() == validList.getCertificates()); 51 QVERIFY(outputList.getCertificates() == validList.getCertificates());
52 QVERIFY(outputList.date() == current); 52 QVERIFY(outputList.date().date() == current.date());
53 QVERIFY(outputList.date().time().hour() == current.time().hour());
54 QVERIFY(outputList.date().time().minute() == current.time().minute());
55 QVERIFY(outputList.date().time().second() == current.time().second());
53 } 56 }
54 57
55 void CreateCertListTest::testSha256Sum() 58 void CreateCertListTest::testSha256Sum()
56 { 59 {
57 QByteArray input = "foo\n"; 60 QByteArray input = "foo\n";

http://wald.intevation.org/projects/trustbridge/