From cc4e644312cdf27b48dcff3ca8941e77638d508b Mon Sep 17 00:00:00 2001 From: Toomore Chiang Date: Fri, 10 Jan 2014 20:24:49 +0800 Subject: [PATCH] Add some test for '0050'. #9 --- test_unittest.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test_unittest.py b/test_unittest.py index 331ed97..fbbf1c1 100644 --- a/test_unittest.py +++ b/test_unittest.py @@ -80,5 +80,14 @@ def test_countdown(): result = grs.Countdown().countdown assert isinstance(result, int) + @staticmethod + def test_taiwan_50(): + stock = grs.Stock('0050') + assert u'台灣50' == stock.info[1] + try: + stock = grs.Stock(0050) + except AssertionError: + pass + if __name__ == '__main__': unittest.main()