'Test the status of an order'

def test_status(self):

    self.assertEqual(self.order.status, 'open')
    self.order._timeout = Timeout(0)
    self.assertEqual(self.order.status, 'expired')
    self.order._traded_quantity = self.order.total_quantity
    self.assertEqual(self.order.status, 'completed')
    self.order._cancelled = True
    self.assertEqual(self.order.status, 'cancelled')
