'Dicts with ``name`` and a malformed ``selfLink`` and no ``zone`` raise
an error that will help in debugging.'

def test_global_bad_selfLink(self):

    name = u'RARENAME'
    selfLink = u'BADSELF'
    self.assertThat((lambda : _create_poller({u'name': name, u'selfLink': selfLink})), Raises(MatchesException(MalformedOperation, MatchesStructure(message=MatchesAll(Contains(selfLink), Contains('/global/operations/'), Contains('selfLink'), Contains(name))))))
