File: base_connection_tests.py

package info (click to toggle)
python-pika 0.9.14-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,048 kB
  • ctags: 2,110
  • sloc: python: 10,046; makefile: 134
file content (19 lines) | stat: -rw-r--r-- 426 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""
Tests for pika.base_connection.BaseConnection

"""
import mock
try:
    import unittest2 as unittest
except ImportError:
    import unittest

from pika.adapters import base_connection


class BaseConnectionTests(unittest.TestCase):

    def test_should_raise_value_exception_with_no_params_func_instead(self):
      def foo():
          return True
      self.assertRaises(ValueError, base_connection.BaseConnection, foo)