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))
def test_component_properties(self): properties = ['PN', 'Name', 'Desc', 'Level', 'QTY'] self.assertTrue(set(parts.component_list()[0]) == set(properties))
def test_bom_components_55(self): self.assertEqual(55, len(parts.component_list(number_of_parts=55)))
def test_bom_components(self): self.assertEqual(1, len(parts.component_list()))
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))