def setUp(self):
    self.git_project1 = GitProjectEntry.objects.create(url='http://test/')
    self.git_user1 = GitUserEntry.objects.create(project=self.git_project1, name='user1', email='example@example.com')
    self.git_commit1 = GitCommitEntry.objects.create(project=self.git_project1, commit_hash='0000100001000010000100001000010000100001', author=self.git_user1, author_date=timezone.now(), committer=self.git_user1, committer_date=timezone.now())
    self.git_commit2 = GitCommitEntry.objects.create(project=self.git_project1, commit_hash='0000200002000020000200002000020000200002', author=self.git_user1, author_date=timezone.now(), committer=self.git_user1, committer_date=timezone.now())
    self.git_branch1 = GitBranchEntry.objects.create(project=self.git_project1, commit=self.git_commit1, name='branch1')
    self.git_branch2 = GitBranchEntry.objects.create(project=self.git_project1, commit=self.git_commit2, name='branch2')
    self.git_diff1 = GitDiffEntry.objects.create(project=self.git_project1, commit_son=self.git_commit1, commit_parent=self.git_commit2, content='content-text')
def setUp(self):
    self.git_project1 = GitProjectEntry.objects.create(url='http://test/')
    self.git_user1 = GitUserEntry.objects.create(project=self.git_project1, name='user1', email='example@example.com')
    self.git_commit1 = GitCommitEntry.objects.create(project=self.git_project1, commit_hash='0000100001000010000100001000010000100001', author=self.git_user1, author_date=timezone.now(), committer=self.git_user1, committer_date=timezone.now())
    self.git_commit2 = GitCommitEntry.objects.create(project=self.git_project1, commit_hash='0000200002000020000200002000020000200002', author=self.git_user1, author_date=timezone.now(), committer=self.git_user1, committer_date=timezone.now())
    self.git_branch1 = GitBranchEntry.objects.create(project=self.git_project1, commit=self.git_commit1, name='branch1')
    self.git_branch2 = GitBranchEntry.objects.create(project=self.git_project1, commit=self.git_commit2, name='branch2')
    self.git_diff1 = GitDiffEntry.objects.create(project=self.git_project1, commit_son=self.git_commit1, commit_parent=self.git_commit2, content='content-text')