def testGetMissingRequires_objectOnClass(self):
    input_lines = [
        'goog.require(\'package.Foo.Enum\');',
        'var x = package.Foo.Enum.VALUE1;',
    ]

    namespaces_info = self._GetNamespacesInfoForScript(input_lines, ['package'])
    missing_requires, _ = namespaces_info.GetMissingRequires()
    self.assertEquals(1, len(missing_requires),
                      'The whole class, not the object, should be required.')
Tests that we should require a class, not the object on the class.
dataset/ETHPy150Open google/closure-linter/closure_linter/closurizednamespacesinfo_test.py/ClosurizedNamespacesInfoTest.testGetMissingRequires_objectOnClass