mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-30 13:10:53 +08:00
TEST: Add a test for bbands output ordering.
This commit is contained in:
1 parent
cbd4ea36bc
commit
2f90665676
1 file changed
+7
@@ -131,3 +131,10 @@ class BollingerBandsTestCase(WithTechnicalFactor, ZiplineTestCase):
|
||||
assert_equal(result.upper, expected_upper)
|
||||
assert_equal(result.middle, expected_middle)
|
||||
assert_equal(result.lower, expected_lower)
|
||||
|
||||
def test_bollinger_bands_output_ordering(self):
|
||||
bbands = BollingerBands(window_length=5, k=2)
|
||||
lower, middle, upper = bbands
|
||||
self.assertIs(lower, bbands.lower)
|
||||
self.assertIs(middle, bbands.middle)
|
||||
self.assertIs(upper, bbands.upper)
|
||||
Reference in new issue
Block a user