本文整理匯總了Python中source.Source.per_lease方法的典型用法代碼示例。如果您正苦於以下問題:Python Source.per_lease方法的具體用法?Python Source.per_lease怎麽用?Python Source.per_lease使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類source.Source
的用法示例。
在下文中一共展示了Source.per_lease方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_successfully_create_source_with_signed_lease_and_percentage_per_lease
# 需要導入模塊: from source import Source [as 別名]
# 或者: from source.Source import per_lease [as 別名]
def test_successfully_create_source_with_signed_lease_and_percentage_per_lease(self):
channel = Source("Rent.com")
channel.per_lease = 595
channel.percentage_per_lease = 0.5
self.assertEqual(595, channel.per_lease)
self.assertEqual(0.5, channel.percentage_per_lease)
示例2: test_successfully_create_source_with_signed_lease_only
# 需要導入模塊: from source import Source [as 別名]
# 或者: from source.Source import per_lease [as 別名]
def test_successfully_create_source_with_signed_lease_only(self):
channel = Source("Apartments.com")
channel.per_lease = 295
self.assertEqual(295, channel.per_lease)