diff --git a/python/testing/__init__.py b/python/testing/__init__.py
index <HASH>..<HASH> 100644
--- a/python/testing/__init__.py
+++ b/python/testing/__init__.py
@@ -0,0 +1,14 @@
+import unittest
+
+def test_module(m, runner=None):
+    if runner is None:
+        runner = unittest.TestRunner()
+    suite = unittest.TestSuite()
+    for key in dir(m):
+        val = getattr(m, key)
+        try:
+            if issubclass(val, unittest.TestCase):
+                suite.addTest(val)
+        except:
+            pass
+    return runner.run(suite)
\ No newline at end of file
Workaround for micropython-lib unittest module main() being buggy/unhelpful with module introspection