#NEWLINE# def testIsExtraRequire_usedIdentifier( self ) : #NEWLINE# #INDENT# 'Tests that requires for used methods on classes are extra.' #NEWLINE# input_lines = [ "goog.require('package.Foo.methodName');" , 'var x = package.Foo.methodName();' ] #NEWLINE# ( token , namespaces_info ) = self . _GetStartTokenAndNamespacesInfoForScript ( token , [ 'package' ] ) #NEWLINE# self . assertTrue ( namespaces_info . IsExtraRequire ( token ) , 'Should require the package, not the method specifically.' )