@@ -104,14 +104,22 @@ def testChinaSSE(self):
104
104
Date (2018 , 4 , 29 ), Date (2018 , 4 , 30 ), Date (2018 , 5 , 1 ),
105
105
Date (2018 , 6 , 16 ), Date (2018 , 6 , 17 ), Date (2018 , 6 , 18 ),
106
106
Date (2018 , 9 , 22 ), Date (2018 , 9 , 23 ), Date (2018 , 9 , 24 ),
107
- Date (2018 , 10 , 1 ), Date (2018 , 10 , 2 ), Date (2018 , 10 , 3 ), Date (2018 , 10 , 4 ), Date (2018 , 10 , 5 ), Date (2018 , 10 , 6 ), Date (2018 , 10 ,7 )]
107
+ Date (2018 , 10 , 1 ), Date (2018 , 10 , 2 ), Date (2018 , 10 , 3 ), Date (2018 , 10 , 4 ), Date (2018 , 10 , 5 ), Date (2018 , 10 , 6 ), Date (2018 , 10 , 7 ),
108
+ # China Shanghai Securities Exchange holiday list in the year 2019
109
+ Date (2019 , 1 , 1 ),
110
+ Date (2019 , 2 , 4 ), Date (2019 , 2 , 5 ), Date (2019 , 2 , 6 ), Date (2019 , 2 , 7 ), Date (2019 , 2 , 8 ),
111
+ Date (2019 , 4 , 5 ),
112
+ Date (2019 , 5 , 1 ),
113
+ Date (2019 , 6 , 7 ),
114
+ Date (2019 , 9 , 13 ),
115
+ Date (2019 , 9 , 30 ), Date (2019 , 10 , 1 ), Date (2019 , 10 , 2 ), Date (2019 , 10 , 3 ), Date (2019 , 10 , 4 )]
108
116
109
117
cal = Calendar ('China.SSE' )
110
118
111
119
for day in expectedHol :
112
120
self .assertEqual (cal .isHoliday (day ), True , "{0} is expected to be a holiday in {1}" .format (day , cal ))
113
121
self .assertEqual (cal .isBizDay (day ), False ,
114
- "{0} is expected not to be a working day in {1} " .format (day , cal ))
122
+ "{0} is not expected to be a working day in {1} " .format (day , cal ))
115
123
116
124
def testChinaIB (self ):
117
125
@@ -146,7 +154,12 @@ def testChinaIB(self):
146
154
Date (2018 , 4 , 8 ),
147
155
Date (2018 , 4 , 28 ),
148
156
Date (2018 , 9 , 29 ),
149
- Date (2018 , 9 , 30 )]
157
+ Date (2018 , 9 , 30 ),
158
+ # China Inter Bank working weekend list in the year 2018
159
+ Date (2019 , 2 , 2 ),
160
+ Date (2019 , 2 , 3 ),
161
+ Date (2019 , 9 , 29 ),
162
+ Date (2019 , 10 , 12 )]
150
163
151
164
cal = Calendar ('China.IB' )
152
165
0 commit comments