Пример #1
0
    def test_context_contains_admin_usernames(self, pyramid_request):
        result = admins_index(pyramid_request)

        assert set(result["admin_users"]) == set([
            "acct:[email protected]", "acct:[email protected]",
            "acct:[email protected]"
        ])
Пример #2
0
    def test_context_contains_admin_usernames(self, pyramid_request):
        result = admins_index(pyramid_request)

        assert set(result["admin_users"]) == set(
            ["acct:[email protected]", "acct:[email protected]", "acct:[email protected]"]
        )
Пример #3
0
    def test_when_no_admins(self, pyramid_request):
        result = admins_index(pyramid_request)

        assert result["admin_users"] == []
Пример #4
0
    def test_when_no_admins(self, pyramid_request):
        result = admins_index(pyramid_request)

        assert result["admin_users"] == []