'Call ``GET /endpoints?region_id={region_id}``.
Ensure passing the parent_region_id as filter returns an
empty list.'

def test_list_endpoints_filtered_by_parent_region_id(self):

    parent_region = self._create_region_with_parent_id()
    parent_region_id = parent_region.result['region']['id']
    self._create_random_endpoint(parent_region_id=parent_region_id)
    response = self.get(('/endpoints?region_id=%s' % parent_region_id))
    self.assertEqual(0, len(response.json['endpoints']))
