add unit tests/refactoring

This commit is contained in:
Yun Xu
2017-09-12 23:42:42 -07:00
parent a46e004f07
commit 24bdb1ce98
5 changed files with 61 additions and 15 deletions

View File

@@ -4,14 +4,8 @@ import syslog
import platform
import types
SANIC_PREFIX = 'SANIC_'
_address_dict = {
'Windows': ('localhost', 514),
'Darwin': '/var/run/syslog',
'Linux': '/dev/log',
'FreeBSD': '/var/run/log'
}
SANIC_PREFIX = 'SANIC_'
class Config(dict):