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

Method test_2

numpy/distutils/tests/test_misc_util.py:20–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 assert_equal(appendpath('prefix', '/name'), join('prefix', 'name'))
19
20 def test_2(self):
21 assert_equal(appendpath('prefix/sub', 'name'),
22 join('prefix', 'sub', 'name'))
23 assert_equal(appendpath('prefix/sub', 'sup/name'),
24 join('prefix', 'sub', 'sup', 'name'))
25 assert_equal(appendpath('/prefix/sub', '/prefix/name'),
26 ajoin('prefix', 'sub', 'name'))
27
28 def test_3(self):
29 assert_equal(appendpath('/prefix/sub', '/prefix/sup/name'),

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
appendpathFunction · 0.90
joinFunction · 0.85

Tested by

no test coverage detected