forked from outside-edge/python-espncricinfo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.py
More file actions
20 lines (14 loc) · 609 Bytes
/
Copy pathtests.py
File metadata and controls
20 lines (14 loc) · 609 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import unittest
from espncricinfo.match import Match
class TestMatchMethods(unittest.TestCase):
def setUp(self):
id=857713
self.match = Match(id)
def test_match_description(self):
self.assertEqual(self.match.description(), 'Caribbean Premier League, 6th Match: St Lucia Zouks v Guyana Amazon Warriors at Gros Islet, Jun 26, 2015')
def test_match_match_class(self):
self.assertEqual(self.match.match_class(), 'Twenty20')
def test_toss_winner(self):
self.assertEqual(self.match.toss_winner(), 'AmWar')
if __name__ == '__main__':
unittest.main()