def METHOD_NAME(self):
    get_user_model().objects.create_superuser(
        'test', 'test@test.test', 'test'
    )
    self.client.login(username='test', password='test')
    network = NetworkFactory(address='192.168.1.0/24')
    url = '{}?env={}'.format(
        reverse('dhcp_config_entries'), network.network_environment
    )
    response = self.client.get(url)
    self.assertEqual(response.status_code, 200)