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

Method test_string_content

test/python/test_Vec3D.py:85–89  ·  view source on GitHub ↗
(self, v1)

Source from the content-addressed store, hash-verified

83 def test_return_string(self, v1):
84 assert isinstance(v1.__str__(), str), "No string returned."
85 def test_string_content(self, v1):
86 assert v1.__str__() == "x: {0:f} y: {1:f} z: {2:f}".format(v1x,
87 v1y,
88 v1z), (
89 "Wrong string format.")
90
91class Test___iadd__():
92 def test_wrong_type(self, v1):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected