aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_flow.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_flow.py')
-rw-r--r--test/test_flow.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/test_flow.py b/test/test_flow.py
index 52e6781f..ffcb6e25 100644
--- a/test/test_flow.py
+++ b/test/test_flow.py
@@ -345,7 +345,7 @@ class uState(libpry.AutoTree):
c.add_request(req)
assert len(c.view) == 2
c.set_limit("~q")
- assert len(c.view) == 2
+ assert len(c.view) == 1
c.set_limit("~s")
assert len(c.view) == 1
@@ -931,6 +931,15 @@ class uODict(libpry.AutoTree):
nd = flow.ODict._from_state(state)
assert nd == self.od
+ def test_in_any(self):
+ self.od["one"] = ["atwoa", "athreea"]
+ assert self.od.in_any("one", "two")
+ assert self.od.in_any("one", "three")
+ assert not self.od.in_any("one", "four")
+ assert not self.od.in_any("nonexistent", "foo")
+ assert not self.od.in_any("one", "TWO")
+ assert self.od.in_any("one", "TWO", True)
+
def test_copy(self):
self.od.add("foo", 1)
self.od.add("foo", 2)