Esempio n. 1
0
 def setUpClass(cls):
     super().setUpClass()
     cls.export_instance = FormExportInstance.wrap(cls.get_json('form_export_instance'))
Esempio n. 2
0
 def test_default_form_values(self):
     # Confirm that FormExportInstances set the default user_types filter correctly
     form_export = FormExportInstance()
     form_export_wrapped = FormExportInstance.wrap({})
     for e in [form_export, form_export_wrapped]:
         self.assertListEqual(e.filters.user_types, [0])
Esempio n. 3
0
 def test_default_form_values(self):
     # Confirm that FormExportInstances set the default user_types filter correctly
     form_export = FormExportInstance()
     form_export_wrapped = FormExportInstance.wrap({})
     for e in [form_export, form_export_wrapped]:
         self.assertListEqual(e.filters.user_types, [0, 5])