Thanks to visit codestin.com Credit goes to github.com
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 563c418 commit 9605e81Copy full SHA for 9605e81
stock_alerter/tests/test_stock.py
@@ -20,5 +20,5 @@ def test_stock_update(self):
20
21
def test_negative_price_should_throw_ValueError(self):
22
goog = Stock("GOOG")
23
- self.assertRaises(ValueError,
24
- goog.update, datetime(2014, 2, 13), -1)
+ with self.assertRaises(ValueError):
+ goog.update(datetime(2014, 2, 13), -1)
0 commit comments