def test_filter_issues_by_report_source(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='app_owner_user'))
    response = self.client.get(reverse('issueslite-list'), {'reportSource': 'weixin', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 1)
    response = self.client.get(reverse('issueslite-list'), {'reportSource': '四大区运营', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 1)
    response = self.client.get(reverse('issueslite-list'), {'reportSource': 'no_source', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 0)
def test_filter_issues_by_report_source(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='app_owner_user'))
    response = self.client.get(reverse('issueslite-list'), {'reportSource': 'weixin', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 1)
    response = self.client.get(reverse('issueslite-list'), {'reportSource': '四大区运营', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 1)
    response = self.client.get(reverse('issueslite-list'), {'reportSource': 'no_source', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 0)