def test_npm_description(self):
stub_stdouts(self)
working_set = mocks.WorkingSet({'calmjs.runtime': [
'npm = calmjs.npm:npm.runtime',
]})
rt = runtime.Runtime(working_set=working_set)
with self.assertRaises(SystemExit):
rt(['npm', '-h'])
out = sys.stdout.getvalue()
self.assertIn('npm support for the calmjs framework', out)
评论列表
文章目录