def test_phone_types_choice_list(self): ''' Checks if list of buildings is correct.''' form_phone_types = ProfileEditChoiceList.phone_types() self.assertEquals(2, len(form_phone_types)) self.assertEquals( (1, u'Mobile'), form_phone_types[0]) self.assertEquals( (2, u'Skype'), form_phone_types[1])
def test_building_choice_list(self): ''' Checks if list of buildings is correct.''' form_buildings = ProfileEditChoiceList.buildings() self.assertEquals(3, len(form_buildings)) self.assertEquals( (0, u'--- not specified ---'), form_buildings[0]) self.assertEquals( (2, u'Building A'), form_buildings[1]) # self.assertEquals( (1, u'Skyscraper'), form_buildings[2]) self.assertEquals( (1, u'Building B'), form_buildings[2])