Passed
Push — master ( 684169...29f120 )
by Rafael S.
01:50
created

TestStockSplitCase00   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 0
c 1
b 0
f 0
dl 0
loc 13
rs 10
1
"""Tests for StockSplit events."""
2
3
from __future__ import absolute_import
4
5
from fixtures.logtest import LogTest
6
from fixtures.events import EVENT5
7
from fixtures.accumulator_states import (
8
    EXPECTED_STATE0, INITIAL_STATE0,
9
)
10
11
12
class TestStockSplitCase00(LogTest):
13
    """Test a StockSplit effect on the Accumulator."""
14
15
    initial_state = INITIAL_STATE0
16
    occurrences = [EVENT5]
17
    expected_log = {
18
        '2015-09-24': {
19
            'price': 5.0,
20
            'quantity': 200,
21
            'results': {'trades': 1200}
22
        }
23
    }
24
    expected_state = EXPECTED_STATE0
25