From 2927bb5f56d22cad837fff4bd75348196e858c16 Mon Sep 17 00:00:00 2001
From: Tamas Gal <tgal@km3net.de>
Date: Tue, 10 Mar 2020 10:06:35 +0100
Subject: [PATCH] More tests

---
 tests/test_offline.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/test_offline.py b/tests/test_offline.py
index 0001a25..b44b1cf 100644
--- a/tests/test_offline.py
+++ b/tests/test_offline.py
@@ -180,6 +180,13 @@ class TestOfflineTracks(unittest.TestCase):
         for key in self.tracks._keymap.keys():
             getattr(self.tracks, key)
 
+    def test_attributes(self):
+        for idx, dom_id in self.dom_id.items():
+            self.assertListEqual(dom_id,
+                                 list(self.hits.dom_id[idx][:len(dom_id)]))
+        for idx, t in self.t.items():
+            assert np.allclose(t, self.hits.t[idx][:len(t)])
+
     def test_item_selection(self):
         self.assertListEqual(list(self.tracks[0].dir_z[:2]),
                              [-0.872885221293917, -0.872885221293917])
-- 
GitLab