Implements add news functionality for community , view function + tests ...

All that stuff is not merge into master yet, so we simply reuse those functions from previous pull request. But it's good to keep those parts unchanged. For instance, here the indentation of the docstring is changed from
```
:param method: string name of the method to be called with test client
               object, e.g. "get", "post", "put"
```

to 
```
:param method: string name of the method to be called with test client
object, e.g. "get", "post", "put"
```