We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 780d5a1 commit 8115678Copy full SHA for 8115678
stock_alerter/tests/test_stock.py
@@ -12,15 +12,14 @@ def setUp(self):
12
def test_price_of_a_new_stock_class_should_be_None(self):
13
self.assertIsNone(self.goog.price)
14
15
+ @unittest.expectedFailure
16
def test_stock_update(self):
17
"""An update should set the price on the stock object
18
19
We will be using the `datetime` module for the timestamp
20
"""
21
self.goog.update(datetime(2014, 2, 12), price=10)
- self.assertEqual(10, self.goog.price)
22
-
23
- test_stock_update.slow = True
+ self.assertEqual(100, self.goog.price)
24
25
def test_negative_price_should_throw_ValueError(self):
26
with self.assertRaises(ValueError):
0 commit comments