Lines Matching defs:cost
2906 def cost(self):
2907 """The cost of the item."""
2917 """The cost of the item."""
2932 def cost(self):
2946 def cost(self):
2953 self.assertEqual(item.cost, 2)
2954 self.assertEqual(item.cost, 2) # not 3
2974 threading.Thread(target=lambda: item.cost)
2982 self.assertEqual(item.cost, 2)
2988 "No '__dict__' attribute on 'CachedCostItemWithSlots' instance to cache 'cost' property.",
2990 item.cost
3059 self.assertIsInstance(CachedCostItem.cost, py_functools.cached_property)
3062 self.assertEqual(CachedCostItem.cost.__doc__, "The cost of the item.")