aboutsummaryrefslogtreecommitdiff
path: root/src/argaze.test
diff options
context:
space:
mode:
authorBenoît LAMIRAULT2023-08-09 17:09:41 +0200
committerBenoît LAMIRAULT2023-08-09 17:09:41 +0200
commitca48b61c608e21c9f258125baa0dc84976f74562 (patch)
treeee0da2dc151b6d5f79f373a462e9e0adaa22b977 /src/argaze.test
parent77f906729e46336b8e860b311cafdcf42087007c (diff)
downloadargaze-ca48b61c608e21c9f258125baa0dc84976f74562.zip
argaze-ca48b61c608e21c9f258125baa0dc84976f74562.tar.gz
argaze-ca48b61c608e21c9f258125baa0dc84976f74562.tar.bz2
argaze-ca48b61c608e21c9f258125baa0dc84976f74562.tar.xz
KeepUntil_Useless
Diffstat (limited to 'src/argaze.test')
-rw-r--r--src/argaze.test/DataStructures.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/argaze.test/DataStructures.py b/src/argaze.test/DataStructures.py
index ca46d5e..8533af3 100644
--- a/src/argaze.test/DataStructures.py
+++ b/src/argaze.test/DataStructures.py
@@ -202,27 +202,6 @@ class TestTimeStampedBufferClass(unittest.TestCase):
self.assertEqual(len(ts_buffer), 2)
self.assertEqual(ts_buffer.first, (2, "C"))
- def test_keep_until(self):
- """Test TimeStampedBuffer keep_until method."""
-
- ts_buffer = DataStructures.TimeStampedBuffer({0: "A", 1: "B", 2: "C", 3: "D"})
-
- # Check keep_until an existing timestamp
- keep_until_2 = ts_buffer.keep_until(2)
-
- self.assertEqual(keep_until_2, (2, "C"))
- self.assertEqual(len(ts_buffer), 3)
- self.assertEqual(ts_buffer.last, (2, "C"))
-
- # Check keep_until an none existing timestamp
- ts_buffer = DataStructures.TimeStampedBuffer({0: "A", 1: "B", 2: "C", 3: "D"})
-
- keep_until_1dot5 = ts_buffer.keep_until(1.5)
-
- self.assertEqual(keep_until_1dot5, (2, "C"))
- self.assertEqual(len(ts_buffer), 3)
- self.assertEqual(ts_buffer.last, (2, "C"))
-
def test_last(self):
"""Test TimeStampedBuffer last property."""