def METHOD_NAME(admin_client, valid_resource_form_data):
    assert Resource.objects.count() == 0  # No resources in the db
    response = admin_client.post(NEW_RESOURCE_URL, data=valid_resource_form_data, follow=True)
    assert response.status_code == 200
    assert response.context['form'].errors == {}
    assert Resource.objects.count() == 1  # One new resource in db
    new_resource = Resource.objects.first()
    assert new_resource.periods.count() == 1
    assert new_resource.periods.first().days.count() == 1
    assert new_resource.periods.first().days.first().weekday == 1