<s> """<STR_LIT>""" <EOL> from django . test import TestCase <EOL> from seed . models import BuildingSnapshot <EOL> class TestBuildingSnapshot ( TestCase ) : <EOL> def setUp ( self ) : <EOL> self . bs = BuildingSnapshot ( ) <EOL> def tearDown ( self ) : <EOL> self . bs = None <EOL> def test_tax_lot_id ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . tax_lot_id = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . tax_lot_id ) , <NUM_LIT> ) <EOL> def test_tax_lot_id_int ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . tax_lot_id = <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( self . bs . tax_lot_id , <NUM_LIT> ) <EOL> bs2 = BuildingSnapshot . objects . get ( pk = self . bs . pk ) <EOL> self . assertEqual ( bs2 . tax_lot_id , u'<STR_LIT>' ) <EOL> def test_pm_property_id ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . pm_property_id = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . pm_property_id ) , <NUM_LIT> ) <EOL> def test_custom_id_1 ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . custom_id_1 = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . custom_id_1 ) , <NUM_LIT> ) <EOL> def test_lot_number ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . lot_number = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . lot_number ) , <NUM_LIT> ) <EOL> def test_block_number ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . block_number = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . block_number ) , <NUM_LIT> ) <EOL> def test_district ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . district = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . district ) , <NUM_LIT> ) <EOL> def test_owner ( self ) : <EOL> """<STR_LIT>""" <EOL> self . bs . owner = "<STR_LIT:*>" * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . owner ) , <NUM_LIT> ) <EOL> def test_owner_email ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . owner_email = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . owner_email ) , <NUM_LIT> ) <EOL> def test_owner_telephone ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . owner_telephone = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . owner_telephone ) , <NUM_LIT> ) <EOL> def test_owner_address ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . owner_address = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . owner_address ) , <NUM_LIT> ) <EOL> def test_owner_city_state ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . owner_city_state = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . owner_city_state ) , <NUM_LIT> ) <EOL> def test_owner_postal_code ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . owner_postal_code = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . owner_postal_code ) , <NUM_LIT> ) <EOL> def test_property_name ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . property_name = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . property_name ) , <NUM_LIT:255> ) <EOL> def test_address_line_1 ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . address_line_1 = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . address_line_1 ) , <NUM_LIT:255> ) <EOL> def test_address_line_2 ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . address_line_2 = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . address_line_2 ) , <NUM_LIT:255> ) <EOL> def test_city ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . city = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . city ) , <NUM_LIT:255> ) <EOL> def test_postal_code ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . postal_code = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . postal_code ) , <NUM_LIT:255> ) <EOL> def test_state_province ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . state_province = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . state_province ) , <NUM_LIT:255> ) <EOL> def test_building_certification ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> self . bs . building_certification = '<STR_LIT:->' * <NUM_LIT> <EOL> self . bs . save ( ) <EOL> self . assertEqual ( len ( self . bs . building_certification ) , <NUM_LIT:255> ) </s>
