Esempio n. 1
0
    def setUp(self):
        self.config_fd, self.config_file = mkstemp()
        with open(self.config_file, "w+") as f:
            f.write("""
[database]
;Database to be used by AUS applications, in URI format
dburi=sqlite:///:memory:

[logging]
;Where to put the application log. No rotation is done on this file.
logfile=/foo/bar/baz

[site-specific]
domain_whitelist=a.com:c|d, boring.com:e
""")
        self.cfg = AUSConfig(self.config_file)