Browse Source

[3859] Made getVersion() unit tests more regular

Francis Dupont 10 years ago
parent
commit
25abc7e696
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/dhcpsrv/tests/daemon_unittest.cc

+ 4 - 0
src/lib/dhcpsrv/tests/daemon_unittest.cc

@@ -123,6 +123,10 @@ TEST_F(DaemonTest, getVersion) {
 
 
     ASSERT_NO_THROW(DaemonImpl::getVersion(false));
     ASSERT_NO_THROW(DaemonImpl::getVersion(false));
 
 
+    EXPECT_EQ(DaemonImpl::getVersion(false), "BASIC");
+
+    ASSERT_NO_THROW(DaemonImpl::getVersion(true));
+
     EXPECT_EQ(DaemonImpl::getVersion(true), "EXTENDED");
     EXPECT_EQ(DaemonImpl::getVersion(true), "EXTENDED");
 }
 }