Fixed string spec in tests
@@ -55,14 +55,14 @@ class DynamicMapConstructor(ComparisonTestCase):
DynamicMap(lambda x: x, streams=[3])
def test_simple_constructor_streams_invalid_mismatch(self):
- regexp = "Callable '<lambda>' missing keywords to accept y stream parameters"
+ regexp = "Callable '<lambda>' missing keywords to accept stream parameters: y"
with self.assertRaisesRegexp(KeyError, regexp):
DynamicMap(lambda x: x, streams=[PointerXY()])
def test_simple_constructor_streams_invalid_mismatch_named(self):
def foo(x): return x
- regexp = "Callable 'foo' missing keywords to accept y stream parameters"
+ regexp = "Callable 'foo' missing keywords to accept stream parameters: y"
with self.assertRaisesRegexp(KeyError, regexp):
DynamicMap(foo, streams=[PointerXY()])
