Fixed test cases

This commit is contained in:
Nabin Hait 2017-03-28 13:39:26 +05:30
parent d20f8585ae
commit 77b2fef41e

View File

@ -217,15 +217,15 @@ class TestItem(unittest.TestCase):
variant = get_variant(template.name, manufacturer=manufacturer.name)
self.assertEquals(variant.item_code, '_Test Variant Mfg-1')
self.assertEquals(variant.description, '_Test Variant Mfg')
self.assertEquals(variant.manufacturer, 'MSG1')
self.assertEquals(variant.get("manufacturers")[0].manufacturer, 'MSG1')
variant.insert()
variant = get_variant(template.name, manufacturer=manufacturer.name,
manufacturer_part_no='007')
self.assertEquals(variant.item_code, '_Test Variant Mfg-2')
self.assertEquals(variant.description, '_Test Variant Mfg')
self.assertEquals(variant.manufacturer, 'MSG1')
self.assertEquals(variant.manufacturer_part_no, '007')
self.assertEquals(variant.get("manufacturers")[0].manufacturer, 'MSG1')
self.assertEquals(variant.get("manufacturers")[0].manufacturer_part_no, '007')
def make_item_variant():