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

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

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

        assert result["staff"] == []
    def test_when_no_staff(self, pyramid_request):
        result = staff_index(pyramid_request)

        assert result["staff"] == []