def test_user_list(self): ret = postgres.user_list( 'test_user', host='test_host', port='test_port', maintenance_db='maint_db', password='******', runas='foo' ) self.assertDictEqual(ret, { 'test_user': {'superuser': True, 'defaults variables': None, 'can create databases': True, 'can create roles': True, 'connections': None, 'replication': None, 'expiry time': None, 'can login': True, 'can update system catalogs': True, 'inherits privileges': True}})
def test_user_list(self): ret = postgres.user_list( 'test_user', host='test_host', port='test_port', maintenance_db='maint_db', password='******', runas='foo' ) self.assertDictEqual(ret, { 'test_user': {'superuser': True, 'defaults variables': None, 'can create databases': True, 'can create roles': True, 'connections': None, 'replication': None, 'expiry time': None, 'can login': True, 'can update system catalogs': True, 'inherits privileges': True}})