1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
|
^'Kc @ s d Z d Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k
Z
given in attrs. These checks are done using the given assert function.
Args:
a: The first object.
b: The second object.
attrs: The list of attribute names (strings).
assertEquals: The assertEquals method from unittest.TestCase.
N( t Validatet getattr( t at bt attrst assertEqualst k( ( s? /home/anog/workspace/transitfeed-1.2.5/python/test/testmerge.pyt CheckAttribs! s
Returns:
The agency object.
Attributes:
problems: The list of problems reported.
isinstance( R t problemt
problem_class( ( s? /home/anog/workspace/transitfeed-1.2.5/python/test/testmerge.pyt _ReportK s
q
Args:
problem_class: The problem class, a class inheriting from
MergeProblemWithContext.
Returns:
True if a matching problem was reported.
( R R t Truet False( R R R ( ( s? /home/anog/workspace/transitfeed-1.2.5/python/test/testmerge.pyt
CheckReportedS s
Args:
problem_class: The problem class, a class inheriting from
MergeProblemWithContext.
The assertions are done using the assert_ method of the testcase.
Args:
testcase: The unittest.TestCase instance.
N( R t assert_R ( R t testcaseR ( ( s? /home/anog/workspace/transitfeed-1.2.5/python/test/testmerge.pyt assertExpectedProblemsReportedk s
( t __name__t
Args:
a: The first value (float).
b: The second value (float).
epsilon: The epsilon value (float).
d
FeedMergerR t fmt
DataSetMergert dst _Migrate( R t
a_schedulet
d
GenerateIdt assertNotEqualR! t
R R R
t i d d
d | i
_ d | i
_ d | i
Ng >@u Andrt s1s stop 1s
http://stop/1t zone1t s2s stop 2s
http://stop/2( R
R: R R; R R< |