Browse Source

add tests for riakcached.pools.Pool

master
Brett Langdon 12 years ago
parent
commit
db24cb88a5
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      riakcached/tests/test_pool.py

+ 16
- 0
riakcached/tests/test_pool.py View File

@ -0,0 +1,16 @@
import unittest2
from riakcached.pools import Pool
class TestPool(unittest2.TestCase):
def test_not_implemented(self):
pool = Pool(auto_connect=False)
self.assertRaises(NotImplementedError, pool.connect)
self.assertRaises(NotImplementedError, pool.close)
self.assertRaises(
NotImplementedError,
pool.request,
"GET",
"http://127.0.0.1:8098/stats",
)

Loading…
Cancel
Save