#NEWLINE# def testGetMissingRequires_objectOnClass( self ) : #NEWLINE# #INDENT# 'Tests that we should require a class, not the object on the class.' #NEWLINE# input_lines = [ "goog.require('package.Foo.Enum');" , 'var x = package.Foo.Enum.VALUE1;' ] #NEWLINE# namespaces_info = self . _GetNamespacesInfoForScript ( input_lines , [ 'package' ] ) #NEWLINE# ( missing_requires , _ ) = namespaces_info . GetMissingRequires ( ) #NEWLINE# self . assertEquals ( 1 , len ( input_lines ) , 'The whole class, not the object, should be required.' )