コード例 #1
0
    def test_should_match_condition(self, _c, _other, _result):
        # given
        c = Condition(_c)
        other = Condition(_other)

        # then
        assert c.does_match(other) is _result
コード例 #2
0
    def test_should_match_perception(self, _c, _p, _result):
        # given
        c = Condition(_c)
        p = Perception(_p)

        # then
        assert c.does_match(p) is _result