'Call ``GET /endpoints?interface={interface}``.'

def test_list_endpoints_filtered_by_interface(self):

    ref = self._create_random_endpoint(interface='internal')
    response = self.get(('/endpoints?interface=%s' % ref['interface']))
    self.assertValidEndpointListResponse(response, ref=ref)
    for endpoint in response.json['endpoints']:
        self.assertEqual(ref['interface'], endpoint['interface'])
