def get_ext_test4(): assert(get_ext('~/dev/') is None)
def get_ext_test2(): assert(get_ext('test.yaml') == 'yaml')
def get_ext_test3(): assert(get_ext('test.yaml', 'json') == 'json')
def get_ext_test1(): assert(get_ext('json.json') == 'json')