'Test if decode_body() works when encoding is not set correctly.'

@patch((QPID_MODULE + u'.Channel.codecs'))
def test_decode_body_not_expected_encoding(self, mock_codecs):

    mock_body = Mock()
    result = self.my_channel.decode_body(mock_body, encoding=None)
    assert (mock_body == result)
