def create_issue(**kwargs):
 owner = kwargs.pop('owner', None)
 if (owner is None):
  owner = UserFactory.create()
 project = kwargs.pop('project', None)
 if (project is None):
  project = ProjectFactory.create(owner=owner)
 defaults = {'project': project, 'owner': owner, 'status': IssueStatusFactory.create(project=project), 'milestone': MilestoneFactory.create(project=project), 'priority': PriorityFactory.create(project=project), 'severity': SeverityFactory.create(project=project), 'type': IssueTypeFactory.create(project=project)}
 defaults.update(kwargs)
 return IssueFactory.create(**defaults)

def create_issue ( ** kwargs ) : owner = kwargs . pop ( 'owner' , None ) if ( owner is None ) : owner = UserFactory . create ( ) project = kwargs . pop ( 'project' , None ) if ( project is None ) : project = ProjectFactory . create ( owner = owner ) defaults = { 'project' : project , 'owner' : owner , 'status' : IssueStatusFactory . create ( project = project ) , 'milestone' : MilestoneFactory . create ( project = project ) , 'priority' : PriorityFactory . create ( project = project ) , 'severity' : SeverityFactory . create ( project = project ) , 'type' : IssueTypeFactory . create ( project = project ) } defaults . update ( kwargs ) return IssueFactory . create ( ** defaults )
create an issue and along with its dependencies .