

def setUp(self):
    if (settings.IS_PRIVATE or (connections['default'].settings_dict['ENGINE'] != 'django.db.backends.postgresql_psycopg2')):
        self.skipTest('Live server should be public with postgreSQL database')
    connections['default'].settings_dict['USER'] = os.environ.get('DB_PUBLIC_USER')
    connections['default'].settings_dict['PASSWORD'] = os.environ.get('DB_PUBLIC_PASSWORD')
    connections['default'].close()
    url = ('%s/%s' % (self.live_server_url, 'admin/'))
    resp = requests.get(url)
    self.assertEqual(resp.status_code, 404)

dataset/ETHPy150Open Crystalnix/omaha-server/omaha_server/omaha/tests/test_public.py PublicTests.setUp/original