def create_series(self,**kwargs):
<EOL>occurrences = max(kwargs.get('<STR_LIT>',<NUM_LIT:1>),<NUM_LIT:1>)<EOL>startTime = kwargs.get('<STR_LIT>', timezone.now() + timedelta(days=<NUM_LIT:1>))<EOL>classDescription = kwargs.get('<STR_LIT>', self.levelOneClassDescription)<EOL>pricingTier = kwargs.get('<STR_LIT>', self.defaultPricing)<EOL>location = kwargs.get('<STR_LIT:location>', self.defaultLocation)<EOL>status = kwargs.get('<STR_LIT:status>', Event.RegStatus.enabled)<EOL>instructors = kwargs.get('<STR_LIT>', [self.defaultInstructor,])<EOL>s = Series(<EOL>classDescription=classDescription,<EOL>pricingTier=pricingTier,<EOL>location=location,<EOL>status=status,<EOL>)<EOL>s.save()<EOL>for k in range(<NUM_LIT:1>,occurrences + <NUM_LIT:1>):<EOL><INDENT>EventOccurrence.objects.create(<EOL>event=s,<EOL>startTime=startTime + timedelta(days=k - <NUM_LIT:1>),<EOL>endTime=startTime + timedelta(days=k - <NUM_LIT:1>,hours=<NUM_LIT:1>)<EOL>)<EOL><DEDENT>for i in instructors:<EOL><INDENT>seriesteacher = EventStaffMember.objects.create(<EOL>event=s,<EOL>category=getConstant('<STR_LIT>'),<EOL>staffMember=i,<EOL>)<EOL>seriesteacher.occurrences = s.eventoccurrence_set.all()<EOL>seriesteacher.save()<EOL><DEDENT>s.save()<EOL>return s<EOL>
This method just creates a new series with the loaded class
description that can be modified or used for various tests.