Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

no more flush; deleting what we test with

Change-Id: I5b2e13dd9d84c749e730ab52b80ec9ca371fb1ce
Reviewed-on: http://review.couchbase.org/19881
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
  • Loading branch information...
commit 5bb6178312771120405bbdf68bd48b46a726c565 1 parent c2aac0f
@BigBlueHat BigBlueHat authored BigBlueHat committed
View
2  couchbase/tests/test_couchbaseclient.py
@@ -29,7 +29,6 @@ def setUp(self):
self.client = CouchbaseClient(self.url, self.bucket_name, "", True)
def tearDown(self):
- self.client.flush()
self.client.done()
@nottest
@@ -57,6 +56,7 @@ def test_set_integer_value(self):
self.client.incr('int')
self.assertEqual(self.client.get('int')[2], 11,
'value should be the integer 11')
+ self.client.delete('int')
@attr(cbv="1.0.0")
def test_bucket_of_type_memcached(self):
View
10 couchbase/tests/test_memcachedclient.py
@@ -32,7 +32,7 @@ def setUp(self):
self.client = MemcachedClient(self.host)
def tearDown(self):
- self.client.flush()
+ pass
@attr(cbv="1.0.0")
def test_simple_add(self):
@@ -59,6 +59,7 @@ def test_simple_append(self):
self.client.set('key', 0, 0, 'value')
self.client.append('key', 'appended')
self.assertTrue(self.client.get('key')[2] == 'valueappended')
+ self.client.delete('key')
@attr(cbv="1.0.0")
def test_simple_delete(self):
@@ -75,6 +76,7 @@ def test_simple_decr(self):
self.client.set('key', 0, 0, 4)
self.client.decr('key', 1)
self.assertTrue(self.client.get('key')[2] == 3)
+ self.client.delete('key')
@attr(cbv="1.0.0")
def test_simple_incr(self):
@@ -85,6 +87,7 @@ def test_simple_incr(self):
self.client.set('key', 0, 0, 1)
self.client.incr('key', 1)
self.assertTrue(self.client.get('key')[2] == 2)
+ self.client.delete('key')
@attr(cbv="1.0.0")
def test_simple_get(self):
@@ -96,18 +99,21 @@ def test_simple_get(self):
raise e
self.client.set('key', 0, 0, 'value')
self.assertTrue(self.client.get('key')[2] == 'value')
+ self.client.delete('key')
@attr(cbv="1.0.0")
def test_simple_prepend(self):
self.client.set('key', 0, 0, 'value')
self.client.prepend('key', 'prepend')
self.assertTrue(self.client.get('key')[2] == 'prependvalue')
+ self.client.delete('key')
@attr(cbv="1.0.0")
def test_simple_replace(self):
self.client.set('key', 0, 0, 'value')
self.client.replace('key', 0, 0, 'replaced')
self.assertTrue(self.client.get('key')[2] == 'replaced')
+ self.client.delete('key')
@attr(cbv="1.0.0")
def test_set_and_get(self):
@@ -162,6 +168,7 @@ def test_getMulti(self):
for k in kv:
self.assertIn(k, rv)
self.assertEqual(rv[k][2], kv[k])
+ self.client.delete(k)
@attr(cbv="1.0.0")
def test_get_multi(self):
@@ -175,3 +182,4 @@ def test_get_multi(self):
for k in kv:
self.assertIn(k, rv)
self.assertEqual(rv[k][2], kv[k])
+ self.client.delete(k)
Please sign in to comment.
Something went wrong with that request. Please try again.