'This tests the is_discounted property of the OrderItem'

def test_is_discounted(self):

    cart = Order.get_cart_for_user(self.user)
    item = OrderItem(user=self.user, order=cart)
    item.list_price = None
    item.unit_cost = 100
    self.assertFalse(item.is_discounted)
    item.list_price = 100
    item.unit_cost = 100
    self.assertFalse(item.is_discounted)
    item.list_price = 100
    item.unit_cost = 90
    self.assertTrue(item.is_discounted)
