def test_payment_created(self): # Get the id of the order we created index_page = PaymentIndex(self.browser, self.configuration['base_url']) index_page.open() payment_id = index_page.id_for_payment(self.order_id) assert payment_id != None, "Could not find a Payment." # Check that the status is correct edit_page = PaymentEdit(self.browser, self.configuration['base_url']) edit_page.open(payment_id) payment = edit_page.get_fields() assert payment['status'] == 2, "Payment status is not 'Processed'"