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(), {})
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(), {})