Beispiel #1
0
    def test_edit_profile_button(self):
        request = pretend.stub()

        assert views.edit_profile_button(request) == {}
Beispiel #2
0
    def test_edit_profile_button(self):
        user = pretend.stub()
        request = pretend.stub()

        assert views.edit_profile_button(user, request) == {"user": user}
Beispiel #3
0
    def test_edit_profile_button(self):
        user = pretend.stub()
        request = pretend.stub()

        assert views.edit_profile_button(user, request) == {'user': user}