MCPcopy
hub / github.com/InstaPy/InstaPy / test_evaluate_mandatory_words

Method test_evaluate_mandatory_words

tests/util_tests.py:12–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10 pass
11
12 def test_evaluate_mandatory_words(self):
13 text = "a b c d e f g"
14
15 self.assertTrue(evaluate_mandatory_words(text, ["a", "B", "c"]))
16 self.assertTrue(evaluate_mandatory_words(text, ["a", "B", "z"]))
17 self.assertTrue(evaluate_mandatory_words(text, ["x", "B", "z"]))
18 self.assertFalse(evaluate_mandatory_words(text, ["x", "y", "z"]))
19 self.assertTrue(evaluate_mandatory_words(text, [["a", "f", "e"]]))
20 self.assertTrue(evaluate_mandatory_words(text, ["a", ["x", "y", "z"]]))
21 self.assertTrue(evaluate_mandatory_words(text, [["x", "y", "z"], "a"]))
22 self.assertFalse(evaluate_mandatory_words(text, [["x", "y", "z"], "v"]))
23 self.assertTrue(evaluate_mandatory_words(text, [["a", "b", "d"], "v"]))
24 self.assertTrue(evaluate_mandatory_words(text, [["a", "b", ["d", "x"]], "v"]))
25 self.assertFalse(evaluate_mandatory_words(text, [["a", "z", ["d", "x"]], "v"]))
26 self.assertTrue(evaluate_mandatory_words(text, [["a", "b", [["d", "e"], "x"]]]))
27 self.assertFalse(
28 evaluate_mandatory_words(text, [["a", "b", [["d", "z"], "x"]]])
29 )

Callers

nothing calls this directly

Calls 1

evaluate_mandatory_wordsFunction · 0.90

Tested by

no test coverage detected