def test_anonymous_issue_creation(self):
        settings.REDMINE_USERNAME = None
        settings.REDMINE_PASSWORD = None

        group = GroupedMessage.objects.all()[0]

        response = self.client.post(CreateRedmineIssue.get_url(group.pk), {
            'subject': 'test',
            'description': 'foo',
        }, follow=True)
        self.assertEquals(response.status_code, 200)
        self.assertTemplateUsed(response, 'sentry/group/details.html')
        
        self.assertTrue(RedmineIssue.objects.filter(group=group).exists())
        
        group = GroupedMessage.objects.get(pk=group.pk)
        self.assertTrue(group.data['redmine']['issue_id'] > 0)
dataset/ETHPy150Open dcramer/sentry-old/sentry/plugins/sentry_redmine/tests/__init__.py/CreateIssueTest.test_anonymous_issue_creation/original