
# PyTest
import pytest

# lendingclub2
from lendingclub2.account import InvestorAccount
from lendingclub2.error import LCError


class TestInvestorAccount(object):
    def test_properties(self):
        investor = InvestorAccount()
        try:
            investor.id()
        except LCError:
            pytest.skip("skip because cannot find account ID")

        assert investor.available_balance >= 0.0
        assert investor.total_balance >= 0.0


# PyTest
import pytest

# lendingclub2
from lendingclub2.account import InvestorAccount
from lendingclub2.error import LCError


class TestInvestorAccount(object):
    def test_properties(self):
        try:
            investor = InvestorAccount()
        except LCError:
            pytest.skip("skip because cannot find account ID")

        assert investor.available_balance >= 0.0
        assert investor.total_balance >= 0.0

Fix error in the case when no ID is provided
Fix error in the case when no ID is provided

  
  # PyTest
  import pytest
  
  # lendingclub2
  from lendingclub2.account import InvestorAccount
  from lendingclub2.error import LCError
  
  
  class TestInvestorAccount(object):
      def test_properties(self):
-         investor = InvestorAccount()
          try:
-             investor.id()
+             investor = InvestorAccount()
          except LCError:
              pytest.skip("skip because cannot find account ID")
  
          assert investor.available_balance >= 0.0
          assert investor.total_balance >= 0.0
  
Fix error in the case when no ID is provided
## Code Before:

# PyTest
import pytest

# lendingclub2
from lendingclub2.account import InvestorAccount
from lendingclub2.error import LCError


class TestInvestorAccount(object):
    def test_properties(self):
        investor = InvestorAccount()
        try:
            investor.id()
        except LCError:
            pytest.skip("skip because cannot find account ID")

        assert investor.available_balance >= 0.0
        assert investor.total_balance >= 0.0

## Instruction:
Fix error in the case when no ID is provided
## Code After:

# PyTest
import pytest

# lendingclub2
from lendingclub2.account import InvestorAccount
from lendingclub2.error import LCError


class TestInvestorAccount(object):
    def test_properties(self):
        try:
            investor = InvestorAccount()
        except LCError:
            pytest.skip("skip because cannot find account ID")

        assert investor.available_balance >= 0.0
        assert investor.total_balance >= 0.0
