From 9ea461638e693ce29331b5cee13889aa82ed790c Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 14 Feb 2014 13:40:41 +0530 Subject: [PATCH] minor fix --- erpnext/selling/doctype/customer/test_customer.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/erpnext/selling/doctype/customer/test_customer.py b/erpnext/selling/doctype/customer/test_customer.py index abe032973d4..b35aa7c884b 100644 --- a/erpnext/selling/doctype/customer/test_customer.py +++ b/erpnext/selling/doctype/customer/test_customer.py @@ -39,17 +39,13 @@ class TestCustomer(unittest.TestCase): self.assertEquals(value, details.get(key)) def test_rename(self): - self.assertEqual(webnotes.conn.exists("Customer", "_Test Customer 1"), - (("_Test Customer 1",),)) - webnotes.rename_doc("Customer", "_Test Customer 1", "_Test Customer 1 Renamed") - self.assertEqual(webnotes.conn.exists("Customer", "_Test Customer 1 Renamed"), - (("_Test Customer 1 Renamed",),)) - self.assertEqual(webnotes.conn.exists("Customer", "_Test Customer 1"), ()) + self.assertTrue(webnotes.conn.exists("Customer", "_Test Customer 1 Renamed")) + self.assertFalse(webnotes.conn.exists("Customer", "_Test Customer 1")) webnotes.rename_doc("Customer", "_Test Customer 1 Renamed", "_Test Customer 1") - + test_ignore = ["Price List"]