haocrowd/tests/test_base.py
Huxley Deng 9481e6fcaa Build Project Structure.
New: base classes and modules.
New: unit tests.
2023-05-22 17:10:59 +08:00

19 lines
356 B
Python

import unittest
from haocrowd.core.base import SimulationBase
class TestBase(unittest.TestCase):
def test_basic(self):
class MySim(SimulationBase):
def run(self) -> str:
return "HelloSim"
mysim = MySim()
self.assertEqual(mysim.run(), "HelloSim")
if __name__ == "__main__":
unittest.main()