'If you pass L{bytes} as the hostname to
L{sslverify.optionsForClientTLS} it immediately raises a L{TypeError}.'

def test_bytesFailFast(self):

    error = self.assertRaises(TypeError, sslverify.optionsForClientTLS, 'not-actually-a-hostname.com')
    expectedText = ('optionsForClientTLS    requires    text    for    host    names,    not    ' + bytes.__name__)
    self.assertEqual(str(error), expectedText)
