def test_bioguide_id_valid_url__first_not_cap(self): """ Test with lower case initial """ input = "r000515" output = gpo_member_photos.bioguide_id_valid(input) self.assertFalse(output)
def test_bioguide_id_valid_url__returns_False(self): """ Test with an invalid ID, an URL """ input = "http://young.house.gov" output = gpo_member_photos.bioguide_id_valid(input) self.assertFalse(output)
def test_bioguide_id_valid__returns_True(self): """ Test with a valid ID """ input = "K000362" output = gpo_member_photos.bioguide_id_valid(input) self.assertTrue(output)
def test_bioguide_id_valid__returns_False(self): """ Test with an invalid ID """ input = "aK000362z" output = gpo_member_photos.bioguide_id_valid(input) self.assertFalse(output)
def test_bioguide_id_valid__None_returns_False(self): """ Test with None """ input = None output = gpo_member_photos.bioguide_id_valid(input) self.assertFalse(output)