fix assign test case

This commit is contained in:
Rushabh Mehta 2014-06-04 17:22:59 +05:30
parent fabc142ab9
commit 9bb0ebf233

View file

@ -16,7 +16,7 @@ class TestAssign(unittest.TestCase):
"name": todo.name,
"description": todo.description,
})
self.assertTrue("test@example.com" in added)
self.assertTrue("test@example.com" in [d.name for d in added])
removed = frappe.widgets.form.assign_to.remove(todo.doctype, todo.name, "test@example.com")
self.assertTrue("test@example.com" not in removed)
self.assertTrue("test@example.com" not in [d.name for d in removed])