Пример #1
0
    def test_upstream_address_two_contracts(self):
        x = make_n_tup(
            make_exports([('caller_author', 'caller_contract'),
                          ('lib_author', 'lib_contract')]))

        self.assertEqual(x.this_contract.upstream().address, 'caller_contract')
Пример #2
0
 def setUp(self):
     self.x = make_n_tup(
         make_exports([('test_author', 'test_contract_addr')]))
Пример #3
0
    def test_lib_author_two_contracts(self):
        x = make_n_tup(
            make_exports([('caller_author', 'caller_contract'),
                          ('lib_author', 'lib_contract')]))

        self.assertEqual(x.this_contract.author, 'lib_author')