File: test_aspect.py

package info (click to toggle)
dart 6.12.1%2Bdfsg4-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 57,000 kB
  • sloc: cpp: 269,461; python: 3,911; xml: 1,273; sh: 404; makefile: 30
file content (15 lines) | stat: -rw-r--r-- 380 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import pytest
import dartpy as dart


def test_simple_frame():
    shape_frame = dart.dynamics.SimpleFrame()
    assert not shape_frame.hasVisualAspect()
    assert shape_frame.getVisualAspect() is None
    assert shape_frame.getVisualAspect(False) is None
    visual = shape_frame.createVisualAspect()
    assert visual is not None


if __name__ == "__main__":
    pytest.main()