def METHOD_NAME(self):
    url = reverse('baseobjectlicence-list')
    data = {
        "base_object": self.base_object2.id,
        "licence": self.licence3.id
    }
    response = self.client.post(url, data=data, format='json')
    self.assertEqual(response.status_code, status.HTTP_201_CREATED)
    self.assertTrue(BaseObjectLicence.objects.filter(
        base_object=self.base_object2.id,
        licence=self.licence3.id
    ).exists())