def test_account(bucket): name = "test account" description = "This is a test account" push_is_running_service() try: account = Account(name, description, bucket=bucket) assert (account.name() == name) assert (account.description() == description) assert (not account.is_null()) uid = account.uid() assert (uid is not None) account2 = Account(uid=uid, bucket=bucket) assert (account2.name() == name) assert (account2.description() == description) assert (account.balance() == Balance()) except: pop_is_running_service() raise pop_is_running_service()
def test_account(bucket): name = "test account" description = "This is a test account" account = Account(name, description, bucket=bucket) assert (account.name() == name) assert (account.description() == description) assert (not account.is_null()) uid = account.uid() assert (uid is not None) account2 = Account(uid=uid, bucket=bucket) assert (account2.name() == name) assert (account2.description() == description) assert (account.balance() == 0)