예제 #1
0
파일: tests.py 프로젝트: 547872495/stocks
def test_share_calculator_commission():
    """ [trading.utilities] Test calc number of shares commission calculation
    """
    shares = utilities.calc_number_of_shares(100,33.0, commission=5.00)
    np.testing.assert_equal(shares, 2)
예제 #2
0
파일: tests.py 프로젝트: yuzhucu/stocks
def test_share_calculator_commission():
    """ [trading.utilities] Test calc number of shares commission calculation
    """
    shares = utilities.calc_number_of_shares(100, 33.0, commission=5.00)
    np.testing.assert_equal(shares, 2)
예제 #3
0
파일: tests.py 프로젝트: 547872495/stocks
def test_share_calculator():
    """ [trading.utilities] Test calc number of shares calculation
    """
    shares = utilities.calc_number_of_shares(100, 33.0)
    np.testing.assert_equal(shares, 3)
예제 #4
0
파일: tests.py 프로젝트: yuzhucu/stocks
def test_share_calculator():
    """ [trading.utilities] Test calc number of shares calculation
    """
    shares = utilities.calc_number_of_shares(100, 33.0)
    np.testing.assert_equal(shares, 3)