def testScope_unusedAlias(self):
    input_lines = [
        'goog.scope(function() {',
        'var Event = goog.events.Event;',
        '});'
        ]

    namespaces_info = self._GetNamespacesInfoForScript(input_lines, ['goog'])
    missing_requires, illegal_alias_stmts = namespaces_info.GetMissingRequires()
    self.assertEquals({}, missing_requires)
    self.assertEquals({'goog.events': 2}, _ToLineDict(illegal_alias_stmts))
Tests that an unused alias symbol is illegal.
dataset/ETHPy150Open google/closure-linter/closure_linter/closurizednamespacesinfo_test.py/ClosurizedNamespacesInfoTest.testScope_unusedAlias