Пример #1
0
 def test_parse_dividend(self):
   self.assertEqual(CashDividendAction(0.02, 'USD'), ActionParser.parse("Cash dividend - 0.02 USD/share"))
Пример #2
0
 def test_parse_name_change(self):
   self.assertEqual(NameChangeAction('Blackberry'), ActionParser.parse("Name change - new name is \"Blackberry\""))
Пример #3
0
 def test_parse_stock_dividend(self):
   self.assertEqual(StockDividendAction(1.075), ActionParser.parse("Stock dividend - 1.075/share"))
Пример #4
0
 def test_parse_symbol_change(self):
   self.assertEqual(SymbolChangeAction('BB'), ActionParser.parse("Symbol change - new symbol is BB"))
Пример #5
0
 def test_parse_stock_split(self):
   self.assertEqual(StockSplitAction(10, 9), ActionParser.parse("Stock split - 9 for 10"))