From 7c2cca6d1b135c6f51cca45f1adc2f46b502d756 Mon Sep 17 00:00:00 2001
From: Gabriele Buondonno <gbuondon@laas.fr>
Date: Fri, 15 Nov 2019 10:15:43 +0100
Subject: [PATCH] [test] [python] Add test_case

---
 test/python_unit/test_case.py | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 test/python_unit/test_case.py

diff --git a/test/python_unit/test_case.py b/test/python_unit/test_case.py
new file mode 100644
index 00000000..e6bec282
--- /dev/null
+++ b/test/python_unit/test_case.py
@@ -0,0 +1,7 @@
+import unittest
+import numpy as np
+
+class TestCase(unittest.TestCase):
+    def assertApprox(self, a, b, epsilon=1e-6):
+        return self.assertTrue(np.allclose(a, b, epsilon), "%s !~= %s" % (a, b))
+
-- 
GitLab