예제 #1
0
파일: dnsmasq_test.py 프로젝트: bryson/salt
 def test_version(self):
     '''
     test to show installed version of dnsmasq.
     '''
     mock = MagicMock(return_value='A B C')
     with patch.dict(dnsmasq.__salt__, {'cmd.run': mock}):
         self.assertEqual(dnsmasq.version(), "C")
예제 #2
0
 def test_version(self):
     '''
     test to show installed version of dnsmasq.
     '''
     mock = MagicMock(return_value='A B C')
     with patch.dict(dnsmasq.__salt__, {'cmd.run': mock}):
         self.assertEqual(dnsmasq.version(), "C")
예제 #3
0
 def test_version(self):
     """
     test to show installed version of dnsmasq.
     """
     mock = MagicMock(return_value="A B C")
     with patch.dict(dnsmasq.__salt__, {"cmd.run": mock}):
         self.assertEqual(dnsmasq.version(), "C")