I'm currently working on ticket
#10403 -- Declarative syntax for Formsets
How to test whether a formset instance is correctly initialized??
The thing which I'm trying to achieve is to initiate a formset without using formset_factory(). I'm able to create objects of class derived from the BaseFormSet, but its really difficult for me to check whether it is properly initiated or not as expected from a formset instance.
Should I write tests for this??
And if yes, which all parameter values should I assert in the test to conclude that my formset instance is indistinguishable from the one created using formset_factory.
Also is there any better way to test this? I'm currently using a python shell to create objects and then check manually its attributes, etc. which I know is not a good way.