Пример #1
0
 def test_version(self):
     '''
     Test for Server Version (select banner  from v$version)
     '''
     with patch.dict(oracle.__salt__, {'pillar.get':
                                       MagicMock(return_value='a')}):
         with patch.object(oracle, 'run_query', return_value='A'):
             self.assertDictEqual(oracle.version(), {})
Пример #2
0
 def test_version(self):
     '''
     Test for Server Version (select banner  from v$version)
     '''
     with patch.dict(oracle.__salt__,
                     {'pillar.get': MagicMock(return_value='a')}):
         with patch.object(oracle, 'run_query', return_value='A'):
             self.assertDictEqual(oracle.version(), {})
Пример #3
0
 def test_version(self):
     """
     Test for Server Version (select banner  from v$version)
     """
     with patch.dict(oracle.__salt__,
                     {"pillar.get": MagicMock(return_value="a")}):
         with patch.object(oracle, "run_query", return_value="A"):
             self.assertDictEqual(oracle.version(), {})