Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/b/m/bmfstock-0.4/test/testItemPaper.py   bmfstock(Download)
import numpy as np
 
from bmfstock import Paper, PaperItem
 
 
class TestItemPaper(unittest.TestCase):
    def test_str(self):
        item = PaperItem('petr4')
    def test_paper(self):
        paper = Paper('petr4')
        item = PaperItem(paper)
        self.assertIs(item.paper, paper)
 
    def test_calculate(self):
        petr4 = PaperItem('petr4')
        petr4.value = '25.27'
        petrf25 = PaperItem('petrf25')
        petrf25.paper.strike = '25.00'