def test_populates_power_type_choices(self): form = ControllerForm() self.assertEqual( [""] + [choice[0] for choice in get_driver_choices()], [choice[0] for choice in form.fields["power_type"].choices], )
def test_AdminMachineForm_populates_power_type_choices(self): form = AdminMachineForm() self.assertEqual( [''] + [choice[0] for choice in get_driver_choices()], [choice[0] for choice in form.fields['power_type'].choices])