def test_subdomain_detect():
 for bn in SUBDOMAIN_OK:
  assert (_is_mostly_subdomain_compatible(bn) is True)
 for bn in SUBDOMAIN_BOGUS:
  assert (_is_mostly_subdomain_compatible(bn) is False)

def test_subdomain_detect ( ) : for bn in SUBDOMAIN_OK : assert ( _is_mostly_subdomain_compatible ( bn ) is True ) for bn in SUBDOMAIN_BOGUS : assert ( _is_mostly_subdomain_compatible ( bn ) is False )
exercise subdomain compatible/incompatible bucket names .