def testModule_requireForGet(self):
    input_lines = [
        'goog.provide(\'test.MyClass\');',
        'function foo() {',
        '  var someModule = goog.module.get(\'goog.someModule\');',
        '  someModule.doSth();',
        '}',
        ]

    namespaces_info = self._GetNamespacesInfoForScript(input_lines, ['goog'])
    self.assertEquals({'goog.someModule': 3},
                      namespaces_info.GetMissingRequires()[0])
Tests that goog.module.get needs a goog.require call.
dataset/ETHPy150Open google/closure-linter/closure_linter/closurizednamespacesinfo_test.py/ClosurizedNamespacesInfoTest.testModule_requireForGet