Skip to content

Write tests for DaoCore constructor #92

@bitfalt

Description

@bitfalt

Description:
This set of tests will verify that the DaoCore contract is initialized with the correct state upon deployment. It should check that the owner and name are set as expected and that deployment fails with invalid arguments.

Acceptance Criteria:

  1. A test case successfully deploys the contract and asserts that self.owner.read() returns the correct owner address provided to the constructor.
  2. A test case successfully deploys the contract and asserts that self.name.read() returns the correct name provided to the constructor.
  3. A test case asserts that self.admin_count.read() and self.member_count.read() are both initialized to 0.
  4. A test case attempts to deploy the contract with a zero address for the owner and asserts that the transaction reverts with the message 'Owner address cannot be zero'

Metadata

Metadata

Assignees

Labels

onlydust-waveContribute to awesome OSS repos during OnlyDust's open source week

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions