def test_is_valid(self): for test in TEST_DATA: v = Vin(test['VIN']) print "Testing: %s" % test['VIN'] assert_equals(v.is_valid, True)
def test_wmi(self): for test in TEST_DATA: v = Vin(test['VIN']) print "Testing: %s" % test['VIN'] assert_equals(v.wmi, test['WMI'])
def test_year(self): for test in TEST_DATA: v = Vin(test['VIN']) print "Testing: %s - %s" % (test['VIN'], v.year) assert_equals(v.year, test['YEAR'])
def test_vsn(self): for test in TEST_DATA: v = Vin(test['VIN']) print "Testing: %s" % test['VIN'] assert_equals(v.vsn, test['SEQUENTIAL_NUMBER'])
def test_vds(self): for test in TEST_DATA: v = Vin(test['VIN']) print "Testing: %s" % test['VIN'] assert_equals(v.vds, test['VDS'])
def test_region(self): for test in TEST_DATA: v = Vin(test['VIN']) print "Testing: %s" % test['VIN'] assert_equals(v.region, test['REGION'])
def test_less_than_500_per_year(self): # no tests yet.. for test in TEST_DATA: v = Vin(test['VIN']) print "Testing: %s" % test['VIN'] assert_equals(v.less_than_500_built_per_year, test['FEWER_THAN_500_PER_YEAR'])
def test_country(self): for test in TEST_DATA: v = Vin(test['VIN']) print "Testing: %s" % test['VIN'] assert_equals(v.country, test['COUNTRY'])