def test_bugtask_attribute_activity(self):
     notification = FakeNotification()
     notification.activity = MockBugActivity(
         attribute='status', target='some bug task identifier')
     self.assertEqual(get_activity_key(notification),
                      'some bug task identifier:status')
 def test_normal_bug_attribute_activity(self):
     notification = FakeNotification()
     notification.activity = MockBugActivity(attribute='title')
     self.assertEqual(get_activity_key(notification), 'title')
 def test_collection_bug_attribute_removed_activity(self):
     notification = FakeNotification()
     notification.activity = MockBugActivity(
         attribute='cves', oldvalue='some cve identifier')
     self.assertEqual(get_activity_key(notification),
                      'cves:some cve identifier')
 def test_no_activity(self):
     self.assertEqual(get_activity_key(FakeNotification()), None)