CORD-1993 port model_policy test to new framework;
cherry-picked from gerrit 6998 commit d8b1439d9e6e1392546a2c26aaccbdf6f92c7b25
Change-Id: I387bd16c3ae2c863e9a0fb7d5dcdac731779b5b9
diff --git a/lib/xos-genx/xosgenx/targets/mock_classes.xtarget b/lib/xos-genx/xosgenx/targets/mock_classes.xtarget
index 3973568..a28f4c3 100644
--- a/lib/xos-genx/xosgenx/targets/mock_classes.xtarget
+++ b/lib/xos-genx/xosgenx/targets/mock_classes.xtarget
@@ -22,9 +22,9 @@
class Object:
objects = Mock()
+ save = Mock()
+ delete = Mock()
def __init__(self, **kwargs):
- setattr(self, 'save', Mock())
- setattr(self, 'delete', Mock())
setattr(self, 'backend_code', 0)
setattr(self, 'id', 98052)
setattr(self, 'pk', random.randint(0, 1<<30))