def METHOD_NAME(self):
    self.create_repos()
    with self.assertNumQueries(3):
        repos = RepositoryStatus.get_user_repos_with_open_prs_status('pr_user')
        self.assertEqual(len(repos), 3)
    # No repos match so the PR query doesn't get executed
    with self.assertNumQueries(1):
        repos = RepositoryStatus.get_user_repos_with_open_prs_status('no_exist')
        self.assertEqual(len(repos), 0)
    last_modified = models.Repository.objects.first().last_modified
    with self.assertNumQueries(3):
        repos = RepositoryStatus.get_user_repos_with_open_prs_status('pr_user', last_modified)
        self.assertEqual(len(repos), 3)
    last_modified = last_modified + datetime.timedelta(0,10)
    with self.assertNumQueries(1):
        repos = RepositoryStatus.get_user_repos_with_open_prs_status('pr_user', last_modified)
        self.assertEqual(len(repos), 0)
    # setting filter_repo_ids
    for i in range(len(self.repo_ids) + 1):
        filter_repo_ids = self.repo_ids[i:len(self.repo_ids)]
        repos = RepositoryStatus.get_user_repos_with_open_prs_status('pr_user', filter_repo_ids=filter_repo_ids)
        self.assertEqual(len(repos), len(filter_repo_ids))
        for repo_id in filter_repo_ids:
            found = False
            for repo in repos:
                if repo['id'] == repo_id:
                    found = True
                    break
            self.assertTrue(found)