コード例 #1
0
 def test_no_snapshots_for_large_collections(self):
     # Ensure that no snapshots are made of the properties comments,
     # bug subscriptions and (un)affected users.
     for field_name in ('subscriptions', 'users_affected',
                        'users_unaffected', 'users_affected_with_dupes',
                        'messages', 'attachments', 'activity'):
         self.failUnless(
             IDoNotSnapshot.providedBy(IBug[field_name]),
             'IBug.%s should not be included in snapshots, see bug 507642.'
             % field_name)
コード例 #2
0
 def test_no_snapshots_for_large_collections(self):
     # Ensure that no snapshots are made of the properties comments,
     # bug subscriptions and (un)affected users.
     for field_name in (
         'subscriptions', 'users_affected', 'users_unaffected',
         'users_affected_with_dupes', 'messages', 'attachments',
         'activity'):
         self.failUnless(
             IDoNotSnapshot.providedBy(IBug[field_name]),
             'IBug.%s should not be included in snapshots, see bug 507642.'
             % field_name)
コード例 #3
0
 def test_translators(self):
     self.assertTrue(
         IDoNotSnapshot.providedBy(ILanguage['translators']),
         "ILanguage.translators should not be included in snapshots, "
         "see bug 553093.")
コード例 #4
0
 def test_translators(self):
     self.failUnless(
         IDoNotSnapshot.providedBy(ILanguage['translators']),
         "ILanguage.translators should not be included in snapshots, "
         "see bug 553093.")