[conduit: 39/138] Get coverage on test_replace, test_delete and test_refresh
- From: John Carr <johncarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [conduit: 39/138] Get coverage on test_replace, test_delete and test_refresh
- Date: Thu, 21 May 2009 03:30:13 -0400 (EDT)
commit 0568b13e0fa8977ae466b4190f7b299783c08e27
Author: John Carr <john carr unrouted co uk>
Date: Wed Apr 29 07:32:47 2009 -0700
Get coverage on test_replace, test_delete and test_refresh
---
test/soup/test_dataprovider.py | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/test/soup/test_dataprovider.py b/test/soup/test_dataprovider.py
index c993204..89859d0 100644
--- a/test/soup/test_dataprovider.py
+++ b/test/soup/test_dataprovider.py
@@ -27,15 +27,30 @@ def make_testcase(wrp):
def test_replace(self):
""" Should be able to replace items """
- pass
+ obj = self.data.iter_samples().next()
+ self.dp.module.refresh()
+ rid = self.dp.module.put(obj, False, None)
+ self.dp.module.finish(False, False, False)
+
+ self.dp.module.refresh()
+ self.dp.module.put(obj, True, rid.get_UID())
+ self.dp.module.finish(False, False, False)
def test_delete(self):
""" Should be able to delete items """
- pass
+ obj = self.data.iter_samples().next()
+ self.dp.module.refresh()
+ rid = self.dp.module.put(obj, False, None)
+ self.dp.module.finish(False, False, False)
+
+ self.dp.module.refresh()
+ self.dp.module.delete(rid.get_UID())
+ self.dp.module.finish(False, False, False)
def test_refresh(self):
""" Refresh shouldnt throw exceptions """
- pass
+ self.dp.module.refresh()
+ self.dp.module.finish(False, False, False)
def test_finish(self):
""" Should be able to call finish on cold """
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]