File: test_attribute_names.py

package info (click to toggle)
python-moderngl-window 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 69,096 kB
  • sloc: python: 12,076; makefile: 21
file content (16 lines) | stat: -rw-r--r-- 501 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from unittest import TestCase

from moderngl_window.geometry import AttributeNames


class AttributeNamesTestCase(TestCase):

    def test_attributes(self):
        """Ensure we can create an instance with partial overrides"""
        attrs = AttributeNames(
            position="vertex",
            normal="normals",
        )
        self.assertEqual(attrs.POSITION, "vertex")
        self.assertEqual(attrs.NORMAL, "normals")
        self.assertEqual(attrs.TANGENT, "in_tangent")