def check(): c = PostgreSql('postgres', {}, [{ 'dbname': 'dbname', 'host': 'localhost', 'port': '5432' }]) c._is_9_2_or_above = mock.MagicMock() return c
def check(): check = PostgreSql('postgres', {}, {}) check._is_9_2_or_above = mock.MagicMock() PostgreSql._known_servers = set() # reset the global state return check
def _check(instance): c = PostgreSql('postgres', {}, [instance]) c._is_9_2_or_above = mock.MagicMock() return c
def check(): check = PostgreSql('postgres', {}, {}) check._is_9_2_or_above = mock.MagicMock() return check