コード例 #1
0
ファイル: test_notification.py プロジェクト: JohnLih/nova
 def test_versions(self):
     checker = fixture.ObjectVersionChecker(
         test_objects.get_nova_objects())
     notification_object_data.update(test_objects.object_data)
     expected, actual = checker.test_hashes(notification_object_data)
     self.assertEqual(expected, actual,
                      'Some notification objects have changed; please make '
                      'sure the versions have been bumped, and then update '
                      'their hashes here.')
コード例 #2
0
ファイル: test_notification.py プロジェクト: seilma/nova
 def test_versions(self):
     checker = fixture.ObjectVersionChecker(test_objects.get_nova_objects())
     notification_object_data.update(test_objects.object_data)
     expected, actual = checker.test_hashes(notification_object_data)
     self.assertEqual(
         expected, actual,
         'Some notification objects have changed; please make '
         'sure the versions have been bumped, and then update '
         'their hashes here.')