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)
def test_successfully_create_source_with_signed_lease_only(self): channel = Source("Apartments.com") channel.per_lease = 295 self.assertEqual(295, channel.per_lease)