def test_issue_stats_test_valid_issues(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='app_owner_user'))
    url = reverse('issuestats')
    response = self.client.get(url, format='json')
    self.assertEqual(response.data['data']['validIssues'], 4)
    data = {'appId': 6}
    response = self.client.get(url, data, format='json')
    self.assertEqual(response.data['data']['validIssues'], 1)
    data = {'endTime': '2017-09-30'}
    response = self.client.get(url, data, format='json')
    self.assertEqual(response.data['data']['validIssues'], 3)
def test_issue_stats_test_valid_issues(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='app_owner_user'))
    url = reverse('issuestats')
    response = self.client.get(url, format='json')
    self.assertEqual(response.data['data']['validIssues'], 4)
    data = {'appId': 6}
    response = self.client.get(url, data, format='json')
    self.assertEqual(response.data['data']['validIssues'], 1)
    data = {'endTime': '2017-09-30'}
    response = self.client.get(url, data, format='json')
    self.assertEqual(response.data['data']['validIssues'], 3)