'Test the status of a transaction'

def test_status(self):

    self.assertEqual(self.transaction.status, 'pending')
    self.payment._success = False
    self.transaction.add_payment(self.payment)
    self.assertEqual(self.transaction.status, 'error')
