Пример #1
0
 def server(error_queue):
     try:
         import tests.data.valid_settings
         s = validator.validate_settings(tests.data.valid_settings)
         server = APNSProxyServer(s)
         server.start()
     except Exception, e:
         error_queue.put(e)
Пример #2
0
 def server(error_queue):
     try:
         import tests.data.valid_settings
         s = validator.validate_settings(tests.data.valid_settings)
         server = APNSProxyServer(s)
         server.start()
     except Exception, e:
         error_queue.put(e)
Пример #3
0
def test_path_changed_abs_path():
    s = validator.validate_settings(tests.data.valid_settings)
    for app in s['APPLICATIONS']:
        eq_(True, os.path.isabs(app.get('cert_file')))
        eq_(True, os.path.isabs(app.get('key_file')))
Пример #4
0
def test_valid_settings():
    validator.validate_settings(tests.data.valid_settings)
Пример #5
0
def test_key_file_not_found():
    validator.validate_settings(tests.data.error_settings6)
Пример #6
0
def test_invalid_settings4():
    validator.validate_settings(tests.data.error_settings4)