Exemple #1
0
    def test_lists_flagged_usernames_no_results(self, nipsa_service,
                                                pyramid_request):
        nipsa_service.flagged = set([])

        result = nipsa_index(pyramid_request)

        assert result['userids'] == []
Exemple #2
0
    def test_lists_flagged_usernames(self, pyramid_request):
        result = nipsa_index(pyramid_request)

        assert set(result["userids"]) == set([
            "acct:[email protected]", "acct:[email protected]",
            "acct:[email protected]"
        ])
Exemple #3
0
    def test_lists_flagged_usernames(self, pyramid_request):
        result = nipsa_index(pyramid_request)

        assert set(result['userids']) == set([
            'acct:[email protected]',
            'acct:[email protected]',
            'acct:[email protected]',
        ])
Exemple #4
0
    def test_lists_flagged_usernames_no_results(self, nipsa_service, pyramid_request):
        nipsa_service.flagged = set([])

        result = nipsa_index(pyramid_request)

        assert result["userids"] == []
Exemple #5
0
    def test_lists_flagged_usernames(self, pyramid_request):
        result = nipsa_index(pyramid_request)

        assert set(result["userids"]) == set(
            ["acct:[email protected]", "acct:[email protected]", "acct:[email protected]"]
        )