def test_should_run_with__negates_result_of_should_exclude_with(self):
        test_patterns = [
            ([ ],                   "case: No tags"),
            ([ "foo" ],             "case: One non-category tag"),
            ([ "foo", "bar" ],      "case: Two non-category tags"),
            ([ self.enabled_tag ],   "case: enabled tag"),
            ([ self.enabled_tag, self.other_tag ],  "case: enabled and other tag"),
            ([ self.enabled_tag, "foo" ],    "case: enabled and foo tag"),
            ([ self.other_tag ],            "case: other tag"),
            ([ self.other_tag, "foo" ],     "case: other and foo tag"),
            ([ self.similar_tag ],          "case: similar tag"),
            ([ "foo", self.similar_tag ],   "case: foo and similar tag"),
        ]
        for tags, case in test_patterns:
            result1 = self.tag_matcher.should_run_with(tags)
            result2 = self.tag_matcher.should_exclude_with(tags)
            self.assertEqual(result1, not result2, (case, tags) % "%s: tags=%s")
            self.assertEqual(not result1, result2, "%s: tags=%s" % (case, tags))
dataset/ETHPy150Open behave/behave/test/test_tag_matcher.py/TestOnlyWithCategoryTagMatcher.test_should_run_with__negates_result_of_should_exclude_with/swapped operands of `%`