Ejemplo n.º 1
0
 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],
     )
Ejemplo n.º 2
0
 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])