def test_should_find_prefix(self): self.assertFalse( findundefined._not_found("foo.bar.baz", ["foo", "bar", "baz"])) self.assertFalse( findundefined._not_found("foo.bar.baz.qux", ["foo.bar"]))
def test_should_find_prefix(self): self.assertFalse(findundefined._not_found("foo.bar.baz", ["foo", "bar", "baz"])) self.assertFalse(findundefined._not_found("foo.bar.baz.qux", ["foo.bar"]))
def test_should_find_direct_reference(self): self.assertFalse(findundefined._not_found("foo", ["foo", "bar", "baz"])) self.assertFalse( findundefined._not_found("foo.bar", ["foo.bar", "baz.qux"]))
def test_should_find_direct_reference(self): self.assertFalse(findundefined._not_found("foo", ["foo", "bar", "baz"])) self.assertFalse(findundefined._not_found("foo.bar", ["foo.bar", "baz.qux"]))