main: initial library code
This commit is contained in:
23
tests/test_taxonomy.py
Normal file
23
tests/test_taxonomy.py
Normal file
@@ -0,0 +1,23 @@
|
||||
import unittest
|
||||
import dragiyski.vulkan.registry as registry
|
||||
from collections.abc import Container
|
||||
|
||||
|
||||
class TestTaxonomy(unittest.TestCase):
|
||||
taxonomy = None
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.taxonomy = registry.taxonomy
|
||||
|
||||
def test_taxonomy_api(self):
|
||||
self.assertEqual(self.taxonomy.api, 'vulkan')
|
||||
|
||||
def test_taxonomy_tags(self):
|
||||
self.assertHasAttr(self.taxonomy, 'tags')
|
||||
self.assertIsInstance(self.taxonomy.tags, Container)
|
||||
self.assertIn('KHR', self.taxonomy.tags)
|
||||
self.assertIn('EXT', self.taxonomy.tags)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user