예제 #1
0
 def test_get_inconsistent_fieldnames_one(self):
     """
     Test that get_inconsistent_fieldnames returns a set and the check fails
     if CONFIG_FIELDSETS does not account for every key in settings.CONFIG.
     """
     self.assertTrue(get_inconsistent_fieldnames())
     self.assertEqual(1, len(check_fieldsets()))
예제 #2
0
 def test_get_inconsistent_fieldnames_none(self):
     """
     Test that get_inconsistent_fieldnames returns an empty set and no checks fail
     if CONFIG_FIELDSETS accounts for every key in settings.CONFIG.
     """
     self.assertFalse(get_inconsistent_fieldnames())
     self.assertEqual(0, len(check_fieldsets()))
예제 #3
0
 def test_get_inconsistent_fieldnames_one(self):
     """
     Test that get_inconsistent_fieldnames returns a set and the check fails
     if CONFIG_FIELDSETS does not account for every key in settings.CONFIG.
     """
     self.assertTrue(get_inconsistent_fieldnames())
     self.assertEqual(1, len(check_fieldsets()))
예제 #4
0
 def test_get_inconsistent_fieldnames_none(self):
     """
     Test that get_inconsistent_fieldnames returns an empty set and no checks fail
     if CONFIG_FIELDSETS accounts for every key in settings.CONFIG.
     """
     self.assertFalse(get_inconsistent_fieldnames())
     self.assertEqual(0, len(check_fieldsets()))
예제 #5
0
 def test_check_fieldsets(self):
     """
     check_fieldsets should not output warning if CONFIG_FIELDSETS is not defined.
     """
     del settings.CONFIG_FIELDSETS
     self.assertEqual(0, len(check_fieldsets()))
예제 #6
0
 def test_check_fieldsets(self):
     """
     check_fieldsets should not output warning if CONFIG_FIELDSETS is not defined.
     """
     del settings.CONFIG_FIELDSETS
     self.assertEqual(0, len(check_fieldsets()))