February 2018
Intermediate to advanced
456 pages
9h 56m
English
The first method that we are going to test is the cancel_orders method. As the name says, it will cancel an order. There a few things we want to test in this method:
With that said, let's add our tests:
def test_cancel_order(self): order = Order.objects.get(pk=1) self.assertIsNotNone(order) ...
Read now
Unlock full access