mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
tests: add unit test for TextNode::write, see #431
This commit is contained in:
parent
e5c3ce1995
commit
da82087735
@ -1,6 +1,13 @@
|
|||||||
from panda3d import core
|
from panda3d import core
|
||||||
|
|
||||||
|
|
||||||
|
def test_textnode_write():
|
||||||
|
out = core.StringStream()
|
||||||
|
text = core.TextNode("test")
|
||||||
|
text.write(out, 0)
|
||||||
|
assert out.data.startswith(b"TextNode test")
|
||||||
|
|
||||||
|
|
||||||
def test_textnode_card_as_margin():
|
def test_textnode_card_as_margin():
|
||||||
text = core.TextNode("test")
|
text = core.TextNode("test")
|
||||||
text.text = "Test"
|
text.text = "Test"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user