Beispiel #1
0
    def test_black_candle_has_lower_closing_than_opening(self):
        candle = Candle(3.4, 5.2, 3, 6, 10)
        self.assertFalse(candle.is_black())

        candle = Candle(5.2, 3.4, 3, 6, 10)
        self.assertTrue(candle.is_black())
Beispiel #2
0
 def test_candle_with_equal_opening_and_closing_has_no_color(self):
     candle = Candle(5, 5, 4, 6, 10)
     self.assertFalse(candle.is_white())
     self.assertFalse(candle.is_black())