def test_open_foo_closed_with_foo_should_be_1(self): text = "(foo) foobar" word = "foo" res = faw.solve(text, word) self.assertEqual(res, 1)
def test_foo_with_foo_should_be_1(self): text = "foo" word = "foo" res = faw.solve(text, word) self.assertEqual(res, 1)
def test_foo_foo_dot_bar_with_foo_should_be_2(self): text = "foo foo.bar" word = "foo" res = faw.solve(text, word) self.assertEqual(res, 2)