-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmultisig_tests.cpp
629 lines (520 loc) · 25.6 KB
/
multisig_tests.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
#include <boost/test/unit_test.hpp>
#include <eosio/testing/tester.hpp>
#include <eosio/chain/abi_serializer.hpp>
#include <eosio/chain/wast_to_wasm.hpp>
#include <eosio.msig/eosio.msig.wast.hpp>
#include <eosio.msig/eosio.msig.abi.hpp>
#include <exchange/exchange.wast.hpp>
#include <exchange/exchange.abi.hpp>
#include <test_api/test_api.wast.hpp>
#include <eosio.system/eosio.system.wast.hpp>
#include <eosio.system/eosio.system.abi.hpp>
#include <eosio.token/eosio.token.wast.hpp>
#include <eosio.token/eosio.token.abi.hpp>
#include <Runtime/Runtime.h>
#include <fc/variant_object.hpp>
using namespace eosio::testing;
using namespace eosio;
using namespace eosio::chain;
using namespace eosio::testing;
using namespace fc;
using mvo = fc::mutable_variant_object;
class eosio_msig_tester : public tester {
public:
eosio_msig_tester() {
create_accounts( { N(eosio.msig), N(eosio.stake), N(eosio.ram), N(eosio.ramfee), N(alice), N(bob), N(carol) } );
produce_block();
auto trace = base_tester::push_action(config::system_account_name, N(setpriv),
config::system_account_name, mutable_variant_object()
("account", "eosio.msig")
("is_priv", 1)
);
set_code( N(eosio.msig), eosio_msig_wast );
set_abi( N(eosio.msig), eosio_msig_abi );
produce_blocks();
const auto& accnt = control->db().get<account_object,by_name>( N(eosio.msig) );
abi_def abi;
BOOST_REQUIRE_EQUAL(abi_serializer::to_abi(accnt.abi, abi), true);
abi_ser.set_abi(abi, abi_serializer_max_time);
}
transaction_trace_ptr create_account_with_resources( account_name a, account_name creator, asset ramfunds, bool multisig,
asset net = core_from_string("10.0000"), asset cpu = core_from_string("10.0000") ) {
signed_transaction trx;
set_transaction_headers(trx);
authority owner_auth;
if (multisig) {
// multisig between account's owner key and creators active permission
owner_auth = authority(2, {key_weight{get_public_key( a, "owner" ), 1}}, {permission_level_weight{{creator, config::active_name}, 1}});
} else {
owner_auth = authority( get_public_key( a, "owner" ) );
}
trx.actions.emplace_back( vector<permission_level>{{creator,config::active_name}},
newaccount{
.creator = creator,
.name = a,
.owner = owner_auth,
.active = authority( get_public_key( a, "active" ) )
});
trx.actions.emplace_back( get_action( N(eosio), N(buyram), vector<permission_level>{{creator,config::active_name}},
mvo()
("payer", creator)
("receiver", a)
("quant", ramfunds) )
);
trx.actions.emplace_back( get_action( N(eosio), N(delegatebw), vector<permission_level>{{creator,config::active_name}},
mvo()
("from", creator)
("receiver", a)
("stake_net_quantity", net )
("stake_cpu_quantity", cpu )
("transfer", 0 )
)
);
set_transaction_headers(trx);
trx.sign( get_private_key( creator, "active" ), control->get_chain_id() );
return push_transaction( trx );
}
void create_currency( name contract, name manager, asset maxsupply ) {
auto act = mutable_variant_object()
("issuer", manager )
("maximum_supply", maxsupply );
base_tester::push_action(contract, N(create), contract, act );
}
void issue( name to, const asset& amount, name manager = config::system_account_name ) {
base_tester::push_action( N(eosio.token), N(issue), manager, mutable_variant_object()
("to", to )
("quantity", amount )
("memo", "")
);
}
void transfer( name from, name to, const string& amount, name manager = config::system_account_name ) {
base_tester::push_action( N(eosio.token), N(transfer), manager, mutable_variant_object()
("from", from)
("to", to )
("quantity", asset::from_string(amount) )
("memo", "")
);
}
asset get_balance( const account_name& act ) {
//return get_currency_balance( config::system_account_name, symbol(CORE_SYMBOL), act );
//temporary code. current get_currency_balancy uses table name N(accounts) from currency.h
//generic_currency table name is N(account).
const auto& db = control->db();
const auto* tbl = db.find<table_id_object, by_code_scope_table>(boost::make_tuple(N(eosio.token), act, N(accounts)));
share_type result = 0;
// the balance is implied to be 0 if either the table or row does not exist
if (tbl) {
const auto *obj = db.find<key_value_object, by_scope_primary>(boost::make_tuple(tbl->id, symbol(CORE_SYMBOL).to_symbol_code()));
if (obj) {
// balance is the first field in the serialization
fc::datastream<const char *> ds(obj->value.data(), obj->value.size());
fc::raw::unpack(ds, result);
}
}
return asset( result, symbol(CORE_SYMBOL) );
}
transaction_trace_ptr push_action( const account_name& signer, const action_name& name, const variant_object& data, bool auth = true ) {
vector<account_name> accounts;
if( auth )
accounts.push_back( signer );
auto trace = base_tester::push_action( N(eosio.msig), name, accounts, data );
produce_block();
BOOST_REQUIRE_EQUAL( true, chain_has_transaction(trace->id) );
return trace;
}
transaction reqauth( account_name from, const vector<permission_level>& auths, const fc::microseconds& max_serialization_time );
abi_serializer abi_ser;
};
transaction eosio_msig_tester::reqauth( account_name from, const vector<permission_level>& auths, const fc::microseconds& max_serialization_time ) {
fc::variants v;
for ( auto& level : auths ) {
v.push_back(fc::mutable_variant_object()
("actor", level.actor)
("permission", level.permission)
);
}
variant pretty_trx = fc::mutable_variant_object()
("expiration", "2020-01-01T00:30")
("ref_block_num", 2)
("ref_block_prefix", 3)
("max_net_usage_words", 0)
("max_cpu_usage_ms", 0)
("delay_sec", 0)
("actions", fc::variants({
fc::mutable_variant_object()
("account", name(config::system_account_name))
("name", "reqauth")
("authorization", v)
("data", fc::mutable_variant_object() ("from", from) )
})
);
transaction trx;
abi_serializer::from_variant(pretty_trx, trx, get_resolver(), max_serialization_time);
return trx;
}
BOOST_AUTO_TEST_SUITE(eosio_msig_tests)
BOOST_FIXTURE_TEST_CASE( propose_approve_execute, eosio_msig_tester ) try {
auto trx = reqauth("alice", {permission_level{N(alice), config::active_name}}, abi_serializer_max_time );
push_action( N(alice), N(propose), mvo()
("proposer", "alice")
("proposal_name", "first")
("trx", trx)
("requested", vector<permission_level>{{ N(alice), config::active_name }})
);
//fail to execute before approval
BOOST_REQUIRE_EXCEPTION( push_action( N(alice), N(exec), mvo()
("proposer", "alice")
("proposal_name", "first")
("executer", "alice")
),
eosio_assert_message_exception,
eosio_assert_message_is("transaction authorization failed")
);
//approve and execute
push_action( N(alice), N(approve), mvo()
("proposer", "alice")
("proposal_name", "first")
("level", permission_level{ N(alice), config::active_name })
);
transaction_trace_ptr trace;
control->applied_transaction.connect([&]( const transaction_trace_ptr& t) { if (t->scheduled) { trace = t; } } );
push_action( N(alice), N(exec), mvo()
("proposer", "alice")
("proposal_name", "first")
("executer", "alice")
);
BOOST_REQUIRE( bool(trace) );
BOOST_REQUIRE_EQUAL( 1, trace->action_traces.size() );
BOOST_REQUIRE_EQUAL( transaction_receipt::executed, trace->receipt->status );
} FC_LOG_AND_RETHROW()
BOOST_FIXTURE_TEST_CASE( propose_approve_unapprove, eosio_msig_tester ) try {
auto trx = reqauth("alice", {permission_level{N(alice), config::active_name}}, abi_serializer_max_time );
push_action( N(alice), N(propose), mvo()
("proposer", "alice")
("proposal_name", "first")
("trx", trx)
("requested", vector<permission_level>{{ N(alice), config::active_name }})
);
push_action( N(alice), N(approve), mvo()
("proposer", "alice")
("proposal_name", "first")
("level", permission_level{ N(alice), config::active_name })
);
push_action( N(alice), N(unapprove), mvo()
("proposer", "alice")
("proposal_name", "first")
("level", permission_level{ N(alice), config::active_name })
);
BOOST_REQUIRE_EXCEPTION( push_action( N(alice), N(exec), mvo()
("proposer", "alice")
("proposal_name", "first")
("executer", "alice")
),
eosio_assert_message_exception,
eosio_assert_message_is("transaction authorization failed")
);
} FC_LOG_AND_RETHROW()
BOOST_FIXTURE_TEST_CASE( propose_approve_by_two, eosio_msig_tester ) try {
auto trx = reqauth("alice", vector<permission_level>{ { N(alice), config::active_name }, { N(bob), config::active_name } }, abi_serializer_max_time );
push_action( N(alice), N(propose), mvo()
("proposer", "alice")
("proposal_name", "first")
("trx", trx)
("requested", vector<permission_level>{ { N(alice), config::active_name }, { N(bob), config::active_name } })
);
//approve by alice
push_action( N(alice), N(approve), mvo()
("proposer", "alice")
("proposal_name", "first")
("level", permission_level{ N(alice), config::active_name })
);
//fail because approval by bob is missing
BOOST_REQUIRE_EXCEPTION( push_action( N(alice), N(exec), mvo()
("proposer", "alice")
("proposal_name", "first")
("executer", "alice")
),
eosio_assert_message_exception,
eosio_assert_message_is("transaction authorization failed")
);
//approve by bob and execute
push_action( N(bob), N(approve), mvo()
("proposer", "alice")
("proposal_name", "first")
("level", permission_level{ N(bob), config::active_name })
);
transaction_trace_ptr trace;
control->applied_transaction.connect([&]( const transaction_trace_ptr& t) { if (t->scheduled) { trace = t; } } );
push_action( N(alice), N(exec), mvo()
("proposer", "alice")
("proposal_name", "first")
("executer", "alice")
);
BOOST_REQUIRE( bool(trace) );
BOOST_REQUIRE_EQUAL( 1, trace->action_traces.size() );
BOOST_REQUIRE_EQUAL( transaction_receipt::executed, trace->receipt->status );
} FC_LOG_AND_RETHROW()
BOOST_FIXTURE_TEST_CASE( propose_with_wrong_requested_auth, eosio_msig_tester ) try {
auto trx = reqauth("alice", vector<permission_level>{ { N(alice), config::active_name }, { N(bob), config::active_name } }, abi_serializer_max_time );
//try with not enough requested auth
BOOST_REQUIRE_EXCEPTION( push_action( N(alice), N(propose), mvo()
("proposer", "alice")
("proposal_name", "third")
("trx", trx)
("requested", vector<permission_level>{ { N(alice), config::active_name } } )
),
eosio_assert_message_exception,
eosio_assert_message_is("transaction authorization failed")
);
} FC_LOG_AND_RETHROW()
BOOST_FIXTURE_TEST_CASE( big_transaction, eosio_msig_tester ) try {
vector<permission_level> perm = { { N(alice), config::active_name }, { N(bob), config::active_name } };
auto wasm = wast_to_wasm( exchange_wast );
variant pretty_trx = fc::mutable_variant_object()
("expiration", "2020-01-01T00:30")
("ref_block_num", 2)
("ref_block_prefix", 3)
("max_net_usage_words", 0)
("max_cpu_usage_ms", 0)
("delay_sec", 0)
("actions", fc::variants({
fc::mutable_variant_object()
("account", name(config::system_account_name))
("name", "setcode")
("authorization", perm)
("data", fc::mutable_variant_object()
("account", "alice")
("vmtype", 0)
("vmversion", 0)
("code", bytes( wasm.begin(), wasm.end() ))
)
})
);
transaction trx;
abi_serializer::from_variant(pretty_trx, trx, get_resolver(), abi_serializer_max_time);
push_action( N(alice), N(propose), mvo()
("proposer", "alice")
("proposal_name", "first")
("trx", trx)
("requested", perm)
);
//approve by alice
push_action( N(alice), N(approve), mvo()
("proposer", "alice")
("proposal_name", "first")
("level", permission_level{ N(alice), config::active_name })
);
//approve by bob and execute
push_action( N(bob), N(approve), mvo()
("proposer", "alice")
("proposal_name", "first")
("level", permission_level{ N(bob), config::active_name })
);
transaction_trace_ptr trace;
control->applied_transaction.connect([&]( const transaction_trace_ptr& t) { if (t->scheduled) { trace = t; } } );
push_action( N(alice), N(exec), mvo()
("proposer", "alice")
("proposal_name", "first")
("executer", "alice")
);
BOOST_REQUIRE( bool(trace) );
BOOST_REQUIRE_EQUAL( 1, trace->action_traces.size() );
BOOST_REQUIRE_EQUAL( transaction_receipt::executed, trace->receipt->status );
} FC_LOG_AND_RETHROW()
BOOST_FIXTURE_TEST_CASE( update_system_contract_all_approve, eosio_msig_tester ) try {
// required to set up the link between (eosio active) and (eosio.prods active)
//
// eosio active
// |
// eosio.prods active (2/3 threshold)
// / | \ <--- implicitly updated in onblock action
// alice active bob active carol active
set_authority(N(eosio), "active", authority(1,
vector<key_weight>{{get_private_key("eosio", "active").get_public_key(), 1}},
vector<permission_level_weight>{{{N(eosio.prods), config::active_name}, 1}}), "owner",
{ { N(eosio), "active" } }, { get_private_key( N(eosio), "active" ) });
set_producers( {N(alice),N(bob),N(carol)} );
produce_blocks(50);
create_accounts( { N(eosio.token) } );
set_code( N(eosio.token), eosio_token_wast );
set_abi( N(eosio.token), eosio_token_abi );
create_currency( N(eosio.token), config::system_account_name, core_from_string("10000000000.0000") );
issue(config::system_account_name, core_from_string("1000000000.0000"));
BOOST_REQUIRE_EQUAL( core_from_string("1000000000.0000"),
get_balance("eosio") + get_balance("eosio.ramfee") + get_balance("eosio.stake") + get_balance("eosio.ram") );
set_code( config::system_account_name, eosio_system_wast );
set_abi( config::system_account_name, eosio_system_abi );
produce_blocks();
create_account_with_resources( N(alice1111111), N(eosio), core_from_string("1.0000"), false );
create_account_with_resources( N(bob111111111), N(eosio), core_from_string("0.4500"), false );
create_account_with_resources( N(carol1111111), N(eosio), core_from_string("1.0000"), false );
BOOST_REQUIRE_EQUAL( core_from_string("1000000000.0000"),
get_balance("eosio") + get_balance("eosio.ramfee") + get_balance("eosio.stake") + get_balance("eosio.ram") );
vector<permission_level> perm = { { N(alice), config::active_name }, { N(bob), config::active_name },
{N(carol), config::active_name} };
vector<permission_level> action_perm = {{N(eosio), config::active_name}};
auto wasm = wast_to_wasm( test_api_wast );
variant pretty_trx = fc::mutable_variant_object()
("expiration", "2020-01-01T00:30")
("ref_block_num", 2)
("ref_block_prefix", 3)
("max_net_usage_words", 0)
("max_cpu_usage_ms", 0)
("delay_sec", 0)
("actions", fc::variants({
fc::mutable_variant_object()
("account", name(config::system_account_name))
("name", "setcode")
("authorization", action_perm)
("data", fc::mutable_variant_object()
("account", name(config::system_account_name))
("vmtype", 0)
("vmversion", 0)
("code", bytes( wasm.begin(), wasm.end() ))
)
})
);
transaction trx;
abi_serializer::from_variant(pretty_trx, trx, get_resolver(), abi_serializer_max_time);
// propose action
push_action( N(alice), N(propose), mvo()
("proposer", "alice")
("proposal_name", "first")
("trx", trx)
("requested", perm)
);
//approve by alice
push_action( N(alice), N(approve), mvo()
("proposer", "alice")
("proposal_name", "first")
("level", permission_level{ N(alice), config::active_name })
);
//approve by bob
push_action( N(bob), N(approve), mvo()
("proposer", "alice")
("proposal_name", "first")
("level", permission_level{ N(bob), config::active_name })
);
//approve by carol
push_action( N(carol), N(approve), mvo()
("proposer", "alice")
("proposal_name", "first")
("level", permission_level{ N(carol), config::active_name })
);
// execute by alice to replace the eosio system contract
transaction_trace_ptr trace;
control->applied_transaction.connect([&]( const transaction_trace_ptr& t) { if (t->scheduled) { trace = t; } } );
push_action( N(alice), N(exec), mvo()
("proposer", "alice")
("proposal_name", "first")
("executer", "alice")
);
BOOST_REQUIRE( bool(trace) );
BOOST_REQUIRE_EQUAL( 1, trace->action_traces.size() );
BOOST_REQUIRE_EQUAL( transaction_receipt::executed, trace->receipt->status );
// can't create account because system contract was replace by the test_api contract
BOOST_REQUIRE_EXCEPTION( create_account_with_resources( N(alice1111112), N(eosio), core_from_string("1.0000"), false ),
eosio_assert_message_exception, eosio_assert_message_is("Unknown Test")
);
} FC_LOG_AND_RETHROW()
BOOST_FIXTURE_TEST_CASE( update_system_contract_major_approve, eosio_msig_tester ) try {
// set up the link between (eosio active) and (eosio.prods active)
set_authority(N(eosio), "active", authority(1,
vector<key_weight>{{get_private_key("eosio", "active").get_public_key(), 1}},
vector<permission_level_weight>{{{N(eosio.prods), config::active_name}, 1}}), "owner",
{ { N(eosio), "active" } }, { get_private_key( N(eosio), "active" ) });
create_accounts( { N(apple) } );
set_producers( {N(alice),N(bob),N(carol), N(apple)} );
produce_blocks(50);
create_accounts( { N(eosio.token) } );
set_code( N(eosio.token), eosio_token_wast );
set_abi( N(eosio.token), eosio_token_abi );
create_currency( N(eosio.token), config::system_account_name, core_from_string("10000000000.0000") );
issue(config::system_account_name, core_from_string("1000000000.0000"));
BOOST_REQUIRE_EQUAL( core_from_string("1000000000.0000"), get_balance( "eosio" ) );
set_code( config::system_account_name, eosio_system_wast );
set_abi( config::system_account_name, eosio_system_abi );
produce_blocks();
create_account_with_resources( N(alice1111111), N(eosio), core_from_string("1.0000"), false );
create_account_with_resources( N(bob111111111), N(eosio), core_from_string("0.4500"), false );
create_account_with_resources( N(carol1111111), N(eosio), core_from_string("1.0000"), false );
BOOST_REQUIRE_EQUAL( core_from_string("1000000000.0000"),
get_balance("eosio") + get_balance("eosio.ramfee") + get_balance("eosio.stake") + get_balance("eosio.ram") );
vector<permission_level> perm = { { N(alice), config::active_name }, { N(bob), config::active_name },
{N(carol), config::active_name}, {N(apple), config::active_name}};
vector<permission_level> action_perm = {{N(eosio), config::active_name}};
auto wasm = wast_to_wasm( test_api_wast );
variant pretty_trx = fc::mutable_variant_object()
("expiration", "2020-01-01T00:30")
("ref_block_num", 2)
("ref_block_prefix", 3)
("max_net_usage_words", 0)
("max_cpu_usage_ms", 0)
("delay_sec", 0)
("actions", fc::variants({
fc::mutable_variant_object()
("account", name(config::system_account_name))
("name", "setcode")
("authorization", action_perm)
("data", fc::mutable_variant_object()
("account", name(config::system_account_name))
("vmtype", 0)
("vmversion", 0)
("code", bytes( wasm.begin(), wasm.end() ))
)
})
);
transaction trx;
abi_serializer::from_variant(pretty_trx, trx, get_resolver(), abi_serializer_max_time);
// propose action
push_action( N(alice), N(propose), mvo()
("proposer", "alice")
("proposal_name", "first")
("trx", trx)
("requested", perm)
);
//approve by alice
push_action( N(alice), N(approve), mvo()
("proposer", "alice")
("proposal_name", "first")
("level", permission_level{ N(alice), config::active_name })
);
//approve by bob
push_action( N(bob), N(approve), mvo()
("proposer", "alice")
("proposal_name", "first")
("level", permission_level{ N(bob), config::active_name })
);
// not enough approvers
BOOST_REQUIRE_EXCEPTION(
push_action( N(alice), N(exec), mvo()
("proposer", "alice")
("proposal_name", "first")
("executer", "alice")
),
eosio_assert_message_exception, eosio_assert_message_is("transaction authorization failed")
);
//approve by apple
push_action( N(apple), N(approve), mvo()
("proposer", "alice")
("proposal_name", "first")
("level", permission_level{ N(apple), config::active_name })
);
// execute by alice to replace the eosio system contract
transaction_trace_ptr trace;
control->applied_transaction.connect([&]( const transaction_trace_ptr& t) { if (t->scheduled) { trace = t; } } );
// execute by another producer different from proposer
push_action( N(apple), N(exec), mvo()
("proposer", "alice")
("proposal_name", "first")
("executer", "apple")
);
BOOST_REQUIRE( bool(trace) );
BOOST_REQUIRE_EQUAL( 1, trace->action_traces.size() );
BOOST_REQUIRE_EQUAL( transaction_receipt::executed, trace->receipt->status );
// can't create account because system contract was replace by the test_api contract
BOOST_REQUIRE_EXCEPTION( create_account_with_resources( N(alice1111112), N(eosio), core_from_string("1.0000"), false ),
eosio_assert_message_exception, eosio_assert_message_is("Unknown Test")
);
} FC_LOG_AND_RETHROW()
BOOST_AUTO_TEST_SUITE_END()