Files
Hippolyzer/tests/base/test_vfs.py
Salad Dais 237a409ee0 Move serialization templates and VFS code to lib.base
Not being able to use common enums in code in lib.base was
getting to be really annoying. It always should have been in
base anyways.
2021-05-23 10:44:18 +00:00

13 lines
390 B
Python

import unittest
from hippolyzer.lib.base.datatypes import UUID
from hippolyzer.lib.base.vfs import STATIC_VFS
class StaticVFSTest(unittest.TestCase):
def test_basic(self):
# Load the block for the fly anim
block = STATIC_VFS[UUID("aec4610c-757f-bc4e-c092-c6e9caf18daf")]
anim_data = STATIC_VFS.read_block(block)
self.assertEqual(len(anim_data), 1414)