

def test_find_namespace_does_not_fail_on_deep_similar_namespaces(self):
    applicaton = Application()
    applicaton.get_namespaces = applicaton.mock().MagicMock(return_value=['foo:sublong', 'bar:sub'])
    self.assertEqual('foo:sublong', applicaton.find_namespace('f:sub'))

dataset/ETHPy150Open sdispater/cleo/tests/test_application.py ApplicationTest.test_find_namespace_does_not_fail_on_deep_similar_namespaces/VarMisuse@20/36 `self`->`applicaton`