DMR: fix messages.tests.TeamBlockSettingsTest.test_block_settings_for_team

This removes a chunk of code that was not necessary for the test to pass.

Also PEP8ifies (partially) the messages tests file.
Merge remote-tracking branch 'origin/dev' into dev