def test_filter_issues_by_priority(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='app_owner_user'))
    response = self.client.get(reverse('issues-list'), {'priority': '紧急', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 0)
    response = self.client.get(reverse('issues-list'), {'priority': '一般', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 0)
    response = self.client.get(reverse('issues-list'), {'priority': '不紧急', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 2)
def test_filter_issues_by_priority(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='app_owner_user'))
    response = self.client.get(reverse('issues-list'), {'priority': '紧急', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 0)
    response = self.client.get(reverse('issues-list'), {'priority': '一般', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 0)
    response = self.client.get(reverse('issues-list'), {'priority': '不紧急', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 2)