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

Method test_unknown_symbol

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

Source from the content-addressed store, hash-verified

44 with pytest.raises(IndexError):
45 em1[4]
46 def test_unknown_symbol(self, em1):
47 with pytest.raises(ArithmeticError):
48 em1["XY"]
49 def test_wrong_argument_type(self, em1):
50 with pytest.raises(NotImplementedError):
51 em1[1.23]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected