blob: 34423fda9ba2a8f4ea6b151b748e9dd8af430791 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# Copyright (C) by Josh Blum. See LICENSE.txt for licensing information.
import unittest
import gras
class ModuleLoaderTest(unittest.TestCase):
def test_load_module_cpp(self):
my_block = gras.make("/tests/my_block0")
self.assertEqual(my_block.get_num(), 42)
def test_load_module_py(self):
my_block = gras.make("/tests/my_block1")
self.assertEqual(my_block.get_num(), 42)
if __name__ == '__main__':
unittest.main()
|