setStatus function accepts extra_context as its parameter instead of url_names and linker.

The problem with the current apporach is that it is difficult to test it without specifying either Summer-of-Code or Code-in specific instance of UrlNames. At the same time, we would like to be able to test this function on Melange level, because this is the level on which the function is defined.

By passing URL, we actually delegate its creation to the outside code. Therefore, the code is more testable because we can pass in an arbitrary string.

It fixes two unit tests which were broken in revision 7f23a46198f8.
6 files changed