def METHOD_NAME(self):
    """Test that we can filter the API endpoint by mixin."""
    url = reverse('api-plugin-list')
    # Try POST (disallowed)
    response = self.client.post(url, {})
    self.assertEqual(response.status_code, 405)
    response = self.client.get(
        url,
        {
            'mixin': 'labels',
            'active': True,
        }
    )
    # No results matching this query!
    self.assertEqual(len(response.data), 0)
    # What about inactive?
    response = self.client.get(
        url,
        {
            'mixin': 'labels',
            'active': False,
        }
    )
    self.assertEqual(len(response.data), 0)
    self.do_activate_plugin()
    # Should be available via the API now
    response = self.client.get(
        url,
        {
            'mixin': 'labels',
            'active': True,
        }
    )
    self.assertEqual(len(response.data), 2)
    data = response.data[1]
    self.assertEqual(data['key'], 'samplelabel')