~dobey/ubuntuone-client/py-only

« back to all changes in this revision

Viewing changes to tests/platform/event_logging/test_windows.py

  • Committer: Tarmac
  • Author(s): Rodney Dawes
  • Date: 2013-02-04 22:10:27 UTC
  • mfrom: (1383.1.1 rm-zeitgeist)
  • Revision ID: tarmac-20130204221027-t8viho77hp60n5a9
Remove usage of zg to reduce complexity, as we aren't using the feature.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# tests.platform.windows.test_event_logging
2
 
#
3
 
# Author: Alejandro J. Cura <alecu@canonical.com>
4
 
#
5
 
# Copyright 2010-2012 Canonical Ltd.
6
 
#
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.
10
 
#
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.
15
 
#
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/>.
18
 
#
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
23
 
# including the two.
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."""
32
 
 
33
 
from twisted.trial import unittest
34
 
 
35
 
class GetListenerTestCase(unittest.TestCase):
36
 
    """Listener creation tests."""
37
 
 
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)
43