def test_string_conversion(self, method):
"""
Test ``EnterpriseCustomerCatalog`` conversion to string.
"""
faker = FakerFactory.create()
uuid = faker.uuid4() # pylint: disable=no-member
name = 'EnterpriseWithACatalog'
enterprise_catalog = EnterpriseCustomerCatalog(
uuid=uuid,
enterprise_customer=factories.EnterpriseCustomerFactory(name=name)
)
expected_str = "<EnterpriseCustomerCatalog with uuid '{uuid}' for EnterpriseCustomer {name}>".format(
uuid=uuid,
name=name
)
self.assertEqual(method(enterprise_catalog), expected_str)
评论列表
文章目录