def test_transaction_is_valid_schema(self): Transaction.is_valid_schema(self.transaction_info)
def test_transaction_is_valid_schema_validation_error(self): self.transaction_info.pop('input') with self.assertRaises(TransactionError) as err: Transaction.is_valid_schema(self.transaction_info) self.assertIsInstance(err, TransactionError) self.assertIn('Validation error', err.message)