def test_filter_issues_by_multiple_score_value(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='app_owner_user'))
    url = reverse('issues-list')
    response = self.client.get(reverse('issues-list'), {'score': 5, 'appId': 1})
    self.assertEqual(self._get_response_total(response), 1)
    response = self.client.get(reverse('issues-list'), {'score': 4, 'appId': 1})
    self.assertEqual(self._get_response_total(response), 1)
    url_query = (url + '?score=4&score=5&appId=1')
    response = self.client.get(url_query)
    self.assertEqual(self._get_response_total(response), 2)
    url_query = (url + '?score=4&score=5&appId=1&score=300000000')
    response = self.client.get(url_query)
    self.assertEqual(self._get_response_total(response), 2)
    response = self.client.get(reverse('issues-list'), {'score': 4, 'appId': 2})
    self.assertEqual(self._get_response_total(response), 1)
    response = self.client.get(reverse('issues-list'), {'score': 5, 'appId': 2})
    self.assertEqual(self._get_response_total(response), 0)
    url_query = (url + '?score=4&score=5&appId=2&score=300000000')
    response = self.client.get(url_query)
    self.assertEqual(self._get_response_total(response), 1)
def test_filter_issues_by_multiple_score_value(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='app_owner_user'))
    url = reverse('issues-list')
    response = self.client.get(reverse('issues-list'), {'score': 5, 'appId': 1})
    self.assertEqual(self._get_response_total(response), 1)
    response = self.client.get(reverse('issues-list'), {'score': 4, 'appId': 1})
    self.assertEqual(self._get_response_total(response), 1)
    url_query = (url + '?score=4&score=5&appId=1')
    response = self.client.get(url_query)
    self.assertEqual(self._get_response_total(response), 2)
    url_query = (url + '?score=4&score=5&appId=1&score=300000000')
    response = self.client.get(url_query)
    self.assertEqual(self._get_response_total(response), 2)
    response = self.client.get(reverse('issues-list'), {'score': 4, 'appId': 2})
    self.assertEqual(self._get_response_total(response), 1)
    response = self.client.get(reverse('issues-list'), {'score': 5, 'appId': 2})
    self.assertEqual(self._get_response_total(response), 0)
    url_query = (url + '?score=4&score=5&appId=2&score=300000000')
    response = self.client.get(url_query)
    self.assertEqual(self._get_response_total(response), 1)