Beispiel #1
0
    def test_testValue_fromTestDataWithEvents_computesCorrectValue(self):
        eventTest = self._makeEventTest(
            test_base.getTestStocksWithEventsFile())

        result = eventTest.testValue()

        self.assertAlmostEqual(42.728, result, 3)
Beispiel #2
0
    def test_isSignificant_fromTestDataWithEvents_shouldBe(self):
        eventTest = self._makeEventTest(
            test_base.getTestStocksWithEventsFile())

        self.assertTrue(eventTest.isSignificant())