$OpenBSD$ index 888537d..532a831 100644 --- python/mach/mach/test/test_conditions.py.orig Fri Feb 20 15:40:38 2015 +++ python/mach/mach/test/test_conditions.py Fri Feb 20 15:40:38 2015 @@ -13,9 +13,14 @@ from mach.test.common import TestBase from mozunit import main -def _populate_context(context): - context.foo = True - context.bar = False +def _populate_context(context, key=None): + if key is None: + return + if key == 'foo': + return True + if key == 'bar': + return False + raise AttributeError(key) class TestConditions(TestBase): """Tests for conditionally filtering commands."""