Example #1
0
 def test_settings_start_false(self):
     self.assertFalse(
         folder.submission_has_folder_flag(self.submission,
                                           'f'))  # featured-filter
     self.assertFalse(
         folder.submission_has_folder_flag(self.submission,
                                           'm'))  # index-filter
     self.assertFalse(
         folder.submission_has_folder_flag(self.submission,
                                           'u'))  # profile-filter
     self.assertFalse(
         folder.submission_has_folder_flag(self.submission,
                                           'n'))  # no-notifications
Example #2
0
 def test_setting_n(self):
     folder.update_settings(self.folder_object, 'n')
     self.assertTrue(folder.submission_has_folder_flag(self.submission, 'n'))  # no-notifications
Example #3
0
 def test_setting_u(self):
     folder.update_settings(self.folder_object, 'u')
     self.assertTrue(folder.submission_has_folder_flag(self.submission, 'u'))  # profile-filter
Example #4
0
 def test_setting_m(self):
     folder.update_settings(self.folder_object, 'm')
     self.assertTrue(folder.submission_has_folder_flag(self.submission, 'm'))  # index-filter
Example #5
0
 def test_setting_f(self):
     folder.update_settings(self.folder_object, 'f')
     self.assertTrue(folder.submission_has_folder_flag(self.submission, 'f'))  # featured-filter
Example #6
0
 def test_settings_start_false(self):
     self.assertFalse(folder.submission_has_folder_flag(self.submission, 'f'))  # featured-filter
     self.assertFalse(folder.submission_has_folder_flag(self.submission, 'm'))  # index-filter
     self.assertFalse(folder.submission_has_folder_flag(self.submission, 'u'))  # profile-filter
     self.assertFalse(folder.submission_has_folder_flag(self.submission, 'n'))  # no-notifications
Example #7
0
 def test_setting_n(self):
     folder.update_settings(self.folder_object, 'n')
     self.assertTrue(folder.submission_has_folder_flag(
         self.submission, 'n'))  # no-notifications
Example #8
0
 def test_setting_u(self):
     folder.update_settings(self.folder_object, 'u')
     self.assertTrue(folder.submission_has_folder_flag(
         self.submission, 'u'))  # profile-filter
Example #9
0
 def test_setting_m(self):
     folder.update_settings(self.folder_object, 'm')
     self.assertTrue(folder.submission_has_folder_flag(
         self.submission, 'm'))  # index-filter
Example #10
0
 def test_setting_f(self):
     folder.update_settings(self.folder_object, 'f')
     self.assertTrue(folder.submission_has_folder_flag(
         self.submission, 'f'))  # featured-filter