1
# tests.platform.windows.test_event_logging
3
# Author: Alejandro J. Cura <alecu@canonical.com>
5
# Copyright 2010-2012 Canonical Ltd.
7
# This program is free software: you can redistribute it and/or modify it
8
# under the terms of the GNU General Public License version 3, as published
9
# by the Free Software Foundation.
11
# This program is distributed in the hope that it will be useful, but
12
# WITHOUT ANY WARRANTY; without even the implied warranties of
13
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
14
# PURPOSE. See the GNU General Public License for more details.
16
# You should have received a copy of the GNU General Public License along
17
# with this program. If not, see <http://www.gnu.org/licenses/>.
19
# In addition, as a special exception, the copyright holders give
20
# permission to link the code of portions of this program with the
21
# OpenSSL library under certain conditions as described in each
22
# individual source file, and distribute linked combinations
24
# You must obey the GNU General Public License in all respects
25
# for all of the code used other than OpenSSL. If you modify
26
# file(s) with this exception, you may extend this exception to your
27
# version of the file(s), but you are not obligated to do so. If you
28
# do not wish to do so, delete this exception statement from your
29
# version. If you delete this exception statement from all source
30
# files in the program, then also delete it here.
31
"""Test the event logging on windows."""
33
from twisted.trial import unittest
35
class GetListenerTestCase(unittest.TestCase):
36
"""Listener creation tests."""
38
def test_never_creates_a_listener(self):
39
"""The listener is never created on windows."""
40
from ubuntuone.platform import event_logging
41
listener = event_logging.get_listener(None, None)
42
self.assertEqual(listener, None)