1. Antti Kaihola
  2. dingus

Commits

Gary Bernhardt  committed 2c96882

Add test for querying calls with no kwargs

  • Participants
  • Parent commits 0207a3b
  • Branches default

Comments (0)

Files changed (1)

File tests/test_call_list.py

View file
         assert self.calls('name', kwarg1=DontCare, kwarg2='arg2')
 
 
+class WhenPopulatedWithACallWithNoKwargs:
+    def setup(self):
+        self.calls = CallList()
+        self.calls.append(Call("name", "args", {}, "return_value"))
+
+    def should_not_return_call_when_given_kwarg_filters(self):
+        assert not self.calls('name', kwarg1=0)
+
+
 class WhenPopulatedWithTwoCalls:
     def setup(self):
         self.calls = CallList()