masakari/masakari/tests/unit/objects
Dinesh Bhor d4f982449e Use os-testr instead of testr
Masakari should use ostestr instead of testr. ostestr is more
powerful and provide much prettier output than testr. Other
projects like cinder, nova, glance, neutron etc already uses
the ostestr wrapper.

Using ostestr shows each tests execution separately because of
which it has shown errors related to "KeyError" in existing test
cases. The error looks like below:

"Exception in string format operation: KeyError: u'id'"

This happens if we don't pass keyword argument like "id" to
exception which we expect to be raised from test through
side_effect [1]. This doesn't lead to test failure but it
appears in test logs. This patch fixes such issues by passing
expected keyword arguments to exceptions.

[1] https://github.com/openstack/masakari/blob/master/masakari/tests/unit/api/openstack/ha/test_hosts.py#L364
Change-Id: I91603ea3dcf35fd20a00dcf477b93d612edca362
2017-07-05 17:37:52 +05:30
..
__init__.py Added masakari objects 2016-09-07 15:57:17 +05:30
test_fields.py Add notification related objects 2016-09-23 12:59:43 +05:30
test_hosts.py Use os-testr instead of testr 2017-07-05 17:37:52 +05:30
test_notifications.py Add notification related objects 2016-09-23 12:59:43 +05:30
test_objects.py Merge "Add notification related objects" 2016-09-25 16:13:10 +00:00
test_segments.py Use os-testr instead of testr 2017-07-05 17:37:52 +05:30