jenkins-bot submitted this change.
[tests] Split TestFilterUnique.test_stop method
Change-Id: I2ead233f3ea9b0ae2297290c1fe6ae4f5413465b
---
M tests/tools_tests.py
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/tools_tests.py b/tests/tools_tests.py
index 66a6bb5..6bcb28b 100644
--- a/tests/tools_tests.py
+++ b/tests/tools_tests.py
@@ -576,7 +576,7 @@
self.assertEqual(deduped_out, [1, 3, 2, 1, 1, 4])
self.assertEqual(deduped, {2, 4})
- def test_stop(self):
+ def test_stop_contains(self):
"""Test filter_unique with an ignoring container."""
deduped = ContainsStopList()
deduped.stop_list = [2]
@@ -589,6 +589,8 @@
with self.assertRaises(StopIteration):
next(deduper)
+ def test_stop_add(self):
+ """Test filter_unique with an ignoring container during add call."""
deduped = AddStopList()
deduped.stop_list = [4]
deduper = tools.filter_unique(self.ints, container=deduped)
To view, visit change 730525. To unsubscribe, or for help writing mail filters, visit settings.