def METHOD_NAME(self):
    project = utils.create_project()
    utils.create_state()
    path = os.path.join(TEST_MAIL_DIR, '0001-git-pull-request.mbox')
    sys.stdin.close()
    sys.stdin = open(path)
    call_command('parsemail', infile=None, list_id=project.listid)
    sys.stdin.close()
    count = models.Patch.objects.filter(project=project.id).count()
    self.assertEqual(count, 1)