'Dicts with ``name`` and malformed ``zone`` without enough slashes raise
an error that can assist in debugging.'

def test_zone_malformed_zone(self):

    name = u'CATACTAC'
    zone = u'BADZONEBAD'
    self.assertThat((lambda : _create_poller({u'name': name, u'zone': zone})), Raises(MatchesException(MalformedOperation, MatchesStructure(message=MatchesAll(Contains(zone), Contains('/zones/'), Contains(name))))))
