summaryrefslogtreecommitdiff
path: root/python/evemu/tests/test_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/evemu/tests/test_base.py')
-rw-r--r--python/evemu/tests/test_base.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/python/evemu/tests/test_base.py b/python/evemu/tests/test_base.py
new file mode 100644
index 0000000..0b72abd
--- /dev/null
+++ b/python/evemu/tests/test_base.py
@@ -0,0 +1,25 @@
+import unittest
+
+from evemu import const
+from evemu.base import EvEmuBase
+from evemu.testing import testcase
+
+
+class EvEmuBaseTestCase(testcase.BaseTestCase):
+
+ def test_so_library_found(self):
+ wrapper = EvEmuBase(self.library)
+ # Make sure that the library loads
+ self.assertNotEqual(
+ wrapper._lib._name.find("libutouch-evemu"), -1)
+
+ def test_c_symbols_found(self):
+ # Make sure that the expected functions are present
+ wrapper = EvEmuBase(self.library)
+ for function_name in const.API:
+ function = getattr(wrapper._lib, function_name)
+ self.assertTrue(function is not None)
+
+
+if __name__ == "__main__":
+ unittest.main()