Beispiel #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'] == []
Beispiel #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]"
        ])
Beispiel #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]',
        ])
Beispiel #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"] == []
Beispiel #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]"]
        )