예제 #1
0
def test_config_parser():
    from catsup.parser.config import parse
    from catsup.utils import ObjectDict
    config = parse(os.path.join(BASE_DIR, "config.json"))
    assert config == ObjectDict({
        u'site': {
            u'url': u'http://blog.com/',
            u'name': u'blogname',
            u'description': u'Just another catsup blog'
        },
        u'author': {
            u'twitter': u'twitter',
            u'name': u'nickname',
            u'email': u'*****@*****.**'
        }
    })
예제 #2
0
def test_config_parser():
    from catsup.parser.config import parse
    from catsup.utils import ObjectDict
    config = parse(os.path.join(BASE_DIR, "config.json"))
    assert config == ObjectDict({u'site': {u'url': u'http://blog.com/', u'name': u'blogname', u'description': u'Just another catsup blog'}, u'author': {u'twitter': u'twitter', u'name': u'nickname', u'email': u'*****@*****.**'}})
예제 #3
0
def test_parser_non_exist_file():
    from catsup.parser.config import parse
    parse("fd")
예제 #4
0
def test_parser_non_exist_file():
    from catsup.parser.config import parse
    parse("fd")