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')
def setUp(self): self.x = make_n_tup( make_exports([('test_author', 'test_contract_addr')]))
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')