13 lines
311 B
Python
13 lines
311 B
Python
from panda3d import core
|
|
|
|
def test_load_unload_page():
|
|
var = core.ConfigVariableInt("test-var", 1)
|
|
assert var.value == 1
|
|
|
|
page = core.load_prc_file_data("test_load_unload_page", "test-var 2")
|
|
assert page
|
|
assert var.value == 2
|
|
|
|
assert core.unload_prc_file(page)
|
|
assert var.value == 1
|