Ignore:
Timestamp:
09/01/13 14:39:13 (8 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Phase:
public
Message:

Arbitrary function condition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/tests/test_environment.py

    r28 r32  
    8989        self.assert_not_met(item, FakeProtagonist(item=False))
    9090
     91    def test_function_condition(self):
     92        condition = environment.FunctionCondition(lambda p: p.startswith('x'))
     93        self.assert_met(condition, 'xxx')
     94        self.assert_not_met(condition, 'yyy')
     95
    9196
    9297class TestActions(TestCase):
Note: See TracChangeset for help on using the changeset viewer.