def testIsExtraRequire_constantNotOnClass(self):
    input_lines = [
        'goog.require(\'package.subpackage.CONSTANT\');',
        'var x = package.subpackage.CONSTANT',
    ]

    token, namespaces_info = self._GetStartTokenAndNamespacesInfoForScript(
        input_lines, ['package'])

    self.assertFalse(namespaces_info.IsExtraRequire(token),
                    'Constants can be required except on classes.');
Returns SHA-1 hash of commit.
dataset/ETHPy150Open google/closure-linter/closure_linter/closurizednamespacesinfo_test.py/ClosurizedNamespacesInfoTest.testIsExtraRequire_constantNotOnClass--crossover with--dataset/ETHPy150Open Djacket/djacket/core/backend/git/object.py/GitCommit.get_sha1_hash