'Test: NoSuchServiceError should be raised block declaration returns none'

def test_no_service_exception_with_none_declaration_(self):

    self.mock_block.service_declaration.return_value = None
    with self.assertRaises(NoSuchServiceError):
        self.runtime.service(self.mock_block, 'i18n')
