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

Method test_empty_initialization

test/python/test_Atom.py:28–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 a = Atom(True)
27 assert isinstance(a, Atom), "Can not create skeleton Atom instance."
28 def test_empty_initialization(self):
29 a = Atom()
30 assert isinstance(a, Atom), "Can not create empty Atom instance."
31 assert isinstance(a.r, Vec3D), "Member Vec3D not initialized."
32 assert isinstance(a.f, Vec3D), "Member Vec3D not initialized."
33 assert isinstance(a.fRef, Vec3D), "Member Vec3D not initialized."
34
35class Test_hasNeighborList:
36 def test_correct_type(self, a1):

Callers

nothing calls this directly

Calls 1

AtomClass · 0.50

Tested by

no test coverage detected