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()