~ubuntu-branches/ubuntu/wily/pyzmq/wily

« back to all changes in this revision

Viewing changes to zmq/tests/test_web.py

  • Committer: Package Import Robot
  • Author(s): Julian Taylor
  • Date: 2013-02-24 19:23:15 UTC
  • mfrom: (1.2.1) (9 sid)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: package-import@ubuntu.com-20130224192315-qhmwp3m3ymk8r60d
Tags: 2.2.0.1-1
* New upstream release
* relicense debian packaging to LGPL-3
* update watch file to use github directly
  thanks to Bart Martens for the file
* add autopkgtests
* drop obsolete DM-Upload-Allowed
* bump standard to 3.9.4, no changes required

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#-----------------------------------------------------------------------------
 
2
#  Copyright (c) 2010-2012 Brian Granger, Min Ragan-Kelley
 
3
#
 
4
#  This file is part of pyzmq
 
5
#
 
6
#  Distributed under the terms of the New BSD License.  The full license is in
 
7
#  the file COPYING.BSD, distributed as part of this software.
 
8
#-----------------------------------------------------------------------------
 
9
 
 
10
#-----------------------------------------------------------------------------
 
11
# Imports
 
12
#-----------------------------------------------------------------------------
 
13
 
 
14
import sys
 
15
 
 
16
import zmq
 
17
from zmq.tests import BaseZMQTestCase, SkipTest
 
18
 
 
19
 
 
20
#-----------------------------------------------------------------------------
 
21
# Tests
 
22
#-----------------------------------------------------------------------------
 
23
 
 
24
 
 
25
class TestZMQWeb(BaseZMQTestCase):
 
26
    
 
27
    def setUp(self):
 
28
        try:
 
29
            import tornado
 
30
        except ImportError:
 
31
            raise SkipTest("zmq.web requires tornado")
 
32
        
 
33
        BaseZMQTestCase.setUp(self)
 
34
    
 
35
    def test_imports(self):
 
36
        """zmq.web is importable"""
 
37
        from zmq import web
 
38