Example #1
0
 def test_str_types(self):
     properties = [
         parts.name(),
         parts.description(),
         parts.uom(),
         parts.component_list()[0]['Name'],
         parts.component_list()[0]['Desc']
     ]
     self.assertTrue(all(isinstance(x, str) for x in properties))
Example #2
0
 def test_component_properties(self):
     properties = ['PN', 'Name', 'Desc', 'Level', 'QTY']
     self.assertTrue(set(parts.component_list()[0]) == set(properties))
Example #3
0
 def test_bom_components_55(self):
     self.assertEqual(55, len(parts.component_list(number_of_parts=55)))
Example #4
0
 def test_bom_components(self):
     self.assertEqual(1, len(parts.component_list()))
Example #5
0
 def test_int_types(self):
     properties = [
         parts.component_list()[0]['Level'],
         parts.component_list()[0]['QTY'],
     ]
     self.assertTrue(all(isinstance(x, int) for x in properties))