def METHOD_NAME(self):
    # Try both our expected media types
    self.getPage('/accept/select', [('Accept', 'text/html')])
    self.assertStatus(200)
    self.assertBody('<h2>Page Title</h2>')
    self.getPage('/accept/select', [('Accept', 'text/plain')])
    self.assertStatus(200)
    self.assertBody('PAGE TITLE')
    self.getPage('/accept/select',
                 [('Accept', 'text/plain, text/*;q=0.5')])
    self.assertStatus(200)
    self.assertBody('PAGE TITLE')
    # text/* and */* should prefer text/html since it comes first
    # in our 'media' argument to tools.accept
    self.getPage('/accept/select', [('Accept', 'text/*')])
    self.assertStatus(200)
    self.assertBody('<h2>Page Title</h2>')
    self.getPage('/accept/select', [('Accept', '*/*')])
    self.assertStatus(200)
    self.assertBody('<h2>Page Title</h2>')
    # Try unacceptable media types
    self.getPage('/accept/select', [('Accept', 'application/xml')])
    self.assertErrorPage(
        406,
        'Your client sent this Accept header: application/xml. '
        'But this resource only emits these media types: '
        'text/html, text/plain.')