#NEWLINE# def testModule_aliasInScope( self ) : #NEWLINE# #INDENT# 'Tests that goog.module style aliases are supported.' #NEWLINE# input_lines = [ "goog.module('test.module');" , "var AliasedClass = goog.require('goog.AliasedClass');" , 'goog.scope(function() {' , 'var x = new AliasedClass();' , '});' ] #NEWLINE# namespaces_info = self . _GetNamespacesInfoForScript ( input_lines , [ 'goog' ] ) #NEWLINE# namespaceToken = self . _GetRequireTokens ( 'goog.AliasedClass' ) #NEWLINE# self . assertFalse ( namespaces_info . IsExtraRequire ( namespaceToken ) , 'AliasedClass should be marked as used' )