

def test_http_auth_issue_creation(self):
    settings.REDMINE_USERNAME = 'sentry'
    settings.REDMINE_PASSWORD = 'sentry'
    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=self).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_http_auth_issue_creation/VarMisuse@103/150 `group`->`self`