示例#1
0
 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"]))
示例#2
0
 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"]))
示例#3
0
 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"]))
示例#4
0
 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"]))