<s> from nova . log import logging <EOL> from nova . tests . integrated import integrated_helpers <EOL> from nova . api . openstack import common <EOL> LOG = logging . getLogger ( '<STR_LIT>' ) <EOL> class XmlTests ( integrated_helpers . _IntegratedTestBase ) : <EOL> """<STR_LIT>""" <EOL> def test_namespace_limits ( self ) : <EOL> """<STR_LIT>""" <EOL> headers = { } <EOL> headers [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> response = self . api . api_request ( '<STR_LIT>' , headers = headers ) <EOL> data = response . read ( ) <EOL> LOG . debug ( "<STR_LIT>" % data ) <EOL> prefix = '<STR_LIT>' % common . XML_NS_V11 <EOL> self . assertTrue ( data . startswith ( prefix ) ) <EOL> def test_namespace_servers ( self ) : <EOL> """<STR_LIT>""" <EOL> headers = { } <EOL> headers [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> response = self . api . api_request ( '<STR_LIT>' , headers = headers ) <EOL> data = response . read ( ) <EOL> LOG . debug ( "<STR_LIT>" % data ) <EOL> prefix = '<STR_LIT>' % common . XML_NS_V11 <EOL> self . assertTrue ( data . startswith ( prefix ) ) </s>
