'Verify S3DashboardContext recognizes URL format query'

def testFormatQuery(self):

    request = current.request
    request.extension = 'html'
    request.args = ['command.json']
    assertEqual = self.assertEqual
    request._get_vars = Storage()
    context = S3DashboardContext()
    assertEqual(context.representation, 'json')
    request._get_vars = Storage({'format': 'xml'})
    context = S3DashboardContext()
    assertEqual(context.representation, 'xml')
