'Technically, L{str} (or L{unicode}, as appropriate) is iterable, but
C{URL(path="foo")} resulting in C{URL.fromText("f/o/o")} is never what
you want.'

def test_technicallyTextIsIterableBut(self):

    with self.assertRaises(TypeError) as raised:
        URL(path=u'foo')
    self.assertEqual(str(raised.exception), u'expected    iterable    of    text    for    path,    not:    {}'.format(repr(u'foo')))
