def create_project(**kwargs):
 defaults = {}
 defaults.update(kwargs)
 ProjectTemplateFactory.create(slug=settings.DEFAULT_PROJECT_TEMPLATE)
 project = ProjectFactory.create(**defaults)
 project.default_issue_status = IssueStatusFactory.create(project=project)
 project.default_severity = SeverityFactory.create(project=project)
 project.default_priority = PriorityFactory.create(project=project)
 project.default_issue_type = IssueTypeFactory.create(project=project)
 project.default_us_status = UserStoryStatusFactory.create(project=project)
 project.default_task_status = TaskStatusFactory.create(project=project)
 project.save()
 return project

def create_project ( ** kwargs ) : defaults = { } defaults . update ( kwargs ) ProjectTemplateFactory . create ( slug = settings . DEFAULT_PROJECT_TEMPLATE ) project = ProjectFactory . create ( ** defaults ) project . default_issue_status = IssueStatusFactory . create ( project = project ) project . default_severity = SeverityFactory . create ( project = project ) project . default_priority = PriorityFactory . create ( project = project ) project . default_issue_type = IssueTypeFactory . create ( project = project ) project . default_us_status = UserStoryStatusFactory . create ( project = project ) project . default_task_status = TaskStatusFactory . create ( project = project ) project . save ( ) return project
create a project along with its dependencies .