From 1bcb083a32ccc5b120dba9950508084d5e51f8d6 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Tue, 20 Dec 2016 01:58:07 +0200
Subject: [PATCH] - Added config test.

---
 tests/test_dhcp.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/test_dhcp.py b/tests/test_dhcp.py
index 5a5e39f..ec5e350 100644
--- a/tests/test_dhcp.py
+++ b/tests/test_dhcp.py
@@ -15,3 +15,9 @@ def test_dhcp_service(Service, Socket, SystemInfo):
         pass
     if SystemInfo.type == 'linux':
         assert Socket('udp://0.0.0.0:67').is_listening
+
+
+def test_dhcp_confi(Sudo, Command, SystemInfo):
+    if SystemInfo.type == 'linux':
+        with Sudo():
+            assert Command('dhcpd -t').rc == 0
-- 
GitLab