MCPcopy Create free account
hub / github.com/numpy/numpy / test_simple

Method test_simple

numpy/distutils/tests/test_npy_pkg_config.py:38–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36
37class TestLibraryInfo:
38 def test_simple(self):
39 with temppath('foo.ini') as path:
40 with open(path, 'w') as f:
41 f.write(simple)
42 pkg = os.path.splitext(path)[0]
43 out = read_config(pkg)
44
45 assert_(out.cflags() == simple_d['cflags'])
46 assert_(out.libs() == simple_d['libflags'])
47 assert_(out.name == simple_d['name'])
48 assert_(out.version == simple_d['version'])
49
50 def test_simple_variable(self):
51 with temppath('foo.ini') as path:

Callers

nothing calls this directly

Calls 7

temppathFunction · 0.90
read_configFunction · 0.90
assert_Function · 0.90
openFunction · 0.85
cflagsMethod · 0.80
libsMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected