def test_issue_component(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='app_owner_user'))
    url = reverse('issues-detail', kwargs={'pk': 1})
    response = self.client.get(url)
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    self.assertEqual(response.data['data']['componentName'], '技术支持')
    url = reverse('issues-detail', kwargs={'pk': 3})
    response = self.client.get(url)
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    self.assertEqual(response.data['data']['componentName'], '飞凡众测')
def test_issue_component(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='app_owner_user'))
    url = reverse('issues-detail', kwargs={'pk': 1})
    response = self.client.get(url)
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    self.assertEqual(response.data['data']['componentName'], '技术支持')
    url = reverse('issues-detail', kwargs={'pk': 3})
    response = self.client.get(url)
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    self.assertEqual(response.data['data']['componentName'], '飞凡众测')