Upgrade origin-src to google transit feed 1.2.6
[bus.git] / origin-src / testmerge.pyc
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@sdZdZddkZddkZddkZddkZddkZddkZddk	Z	ddk
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(tValidatetgetattr(tatbtattrstassertEqualstk((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(Rtproblemt
problem_class((s?/home/anog/workspace/transitfeed-1.2.5/python/test/testmerge.pyt_ReportKs


q


    Args:
      problem_class: The problem class, a class inheriting from
                     MergeProblemWithContext.

    Returns:
      True if a matching problem was reported.
    (RRtTruetFalse(RRR((s?/home/anog/workspace/transitfeed-1.2.5/python/test/testmerge.pyt
CheckReportedSs




    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(Rtassert_R(RttestcaseR((s?/home/anog/workspace/transitfeed-1.2.5/python/test/testmerge.pytassertExpectedProblemsReportedks
(t__name__t


    Args:
      a: The first value (float).
      b: The second value (float).
      epsilon: The epsilon value (float).


d


FeedMergerRtfmt
DataSetMergertdst_Migrate(Rt
a_schedulet



















d






GenerateIdtassertNotEqualR!t



RR	R






















ti	dd









d|i
_d|i
_d|i

Ng>@uAndr‚ts1sstop 1s
http://stop/1tzone1ts2sstop 2s
http://stop/2(R
R:RR;RR<t












a_zone_mapt


















    Returns:
      The distance between the stops in metres, a value greater than zero.





												

troute_short_nametroute_long_namet






















shape_in_bts_in_b((s?/home/anog/workspace/transitfeed-1.2.5/python/test/testmerge.pyttestConflictingTripid	s"		



FareMergert




|i



d







    The maximum of the distances between the endpoints is returned.

    Returns:
      The distance in metres, a value greater than zero.


















					t__main__(!R&t