Skip to content

Commit

Permalink
Add some test for '0050'. #9
Browse files Browse the repository at this point in the history
  • Loading branch information
toomore committed Jan 10, 2014
1 parent 38fcb43 commit cc4e644
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test_unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit cc4e644

Please sign in to comment.