#NEWLINE# def create_egg( name , resources ) : #NEWLINE# #INDENT# '\n    Creates a mock egg with a list of resources.\n\n    name: The name of the module.\n    resources: A dictionary of resources. Keys are the names and values the data.\n    ' #NEWLINE# egg = imp . new_module ( name ) #NEWLINE# egg . __loader__ = MockLoader ( ) #NEWLINE# egg . _resources = resources #NEWLINE# sys . modules [ name ] = egg