Method: TC_FECTestScheduleB#test_v53

Defined in:
lib/tests/sbtest.rb

#test_v53Object



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
242
243
244
245
# File 'lib/tests/sbtest.rb', line 202

def test_v53
	h = FECHell.new

	fec_version,original_form_type, form_type, values = h.header_lines(@testfiles["5.3"])
	
	h.process(@testfiles["5.3"]) do |line|
		schedule = line[0]
		values = line[1]

		f = FECForm.schedule_for(schedule, fec_version, values)			
	
		if schedule == "SB"			
#SB17,C00414391,IND,,RD 2 Box 359,,Ulster,PA,18850,,In-kind - office expenses & phone,P2006,,20051015,308.11,,,,,,,,,,,,,,,,SB17.4668,,,,,,,,Eldredge-Martin,Andrew,,,
			assert_equal('C00414391',f.committee_fecid)
			assert_equal('IND',f.entity_type)
			#assert_equal('Key Bank',f.payee_organization_name)
			#assert_equal('Capitol Vial',f.payee_organization_name)
			#assert_equal('',f.payee_first_name)
			#assert_equal('',f.payee_middle_name)
			#assert_equal('',f.payee_prefix)
			#assert_equal('',f.payee_suffix)
			assert_equal('RD 2 Box 359',f.payee_street_1)
			assert_equal('',f.payee_street_2)
			assert_equal('Ulster',f.payee_city)
			assert_equal('PA',f.payee_state)
			assert_equal('18850',f.payee_zip)
			assert_equal('P2006',f.item_election_code)
			assert_equal('',f.item_election_other_description)
			assert_equal('20051015',f.expenditure_date)
			assert_equal('308.11',f.expenditure_amount)
			assert_equal('',f.expenditure_purpose_code)
			assert_equal('In-kind - office expenses & phone',f.expenditure_purpose_description)
			assert_equal('',f.expenditure_category_code)
			## 5.1-5.3 only for individuals / orgs
			assert_equal('Eldredge-Martin', f.recipient_last_name)
			assert_equal('Andrew', f.recipient_first_name)
			#assert_equal('C00378935',f.beneficiary_committee_fecid)
			#assert_equal('H',f.beneficiary_candidate_office)
			#assert_equal('NY',f.beneficiary_candidate_state)
			#assert_equal('14',f.beneficiary_candidate_district)				
			break
		end
	end
end