MCPcopy Create free account
hub / github.com/CompPhysVienna/n2p2 / test_correct_element_index

Method test_correct_element_index

test/python/test_ElementMap.py:61–63  ·  view source on GitHub ↗
(self, em1)

Source from the content-addressed store, hash-verified

59
60class Test_index:
61 def test_correct_element_index(self, em1):
62 for i, e in enumerate(elements):
63 assert em1.index(e) == i, "Wrong element order."
64 def test_wrong_argument_type(self, em1):
65 with pytest.raises(TypeError):
66 em1.index(1)

Callers

nothing calls this directly

Calls 1

indexMethod · 0.80

Tested by

no test coverage detected