Ai
2 Star 0 Fork 0

mirrors_sourcegraph/python-deps

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
aliases_test.py 613 Bytes
一键复制 编辑 原始数据 按行查看 历史
Beyang Liu 提交于 2014-01-14 12:58 +08:00 . aliases.py test
import unittest
from os import path
import aliases
import json
class TestAliases(unittest.TestCase):
def test_aliases(self):
testdir = path.join(path.dirname(path.abspath(__file__)), 'testdata')
rootdir = path.join(testdir, 'reexporter')
a = aliases.get_aliases(rootdir)
actual = json.dumps(a, sort_keys=True, indent=2, separators=': ')
with open(path.join(rootdir, 'test_aliases.out'), 'w') as f:
f.write(actual)
with open(path.join(rootdir, 'test_aliases.exp')) as f:
expected = f.read()
self.assertEquals(actual, expected)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_sourcegraph/python-deps.git
git@gitee.com:mirrors_sourcegraph/python-deps.git
mirrors_sourcegraph
python-deps
python-deps
master

搜索帮助