test_update and test_get_type_list expected order causes test failures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-glareclient |
Fix Released
|
Undecided
|
Ralf Haferkamp |
Bug Description
TestController.
=======
FAIL: glareclient.
glareclient.
-------
_StringException: Traceback (most recent call last):
File "/<<PKGBUILDDIR
'/artifacts
File "/usr/lib/
return self.assert_
File "/usr/lib/
six.
File "<string>", line 2, in raise_from
AssertionError: Expected call: patch('
Actual call: patch('
Changed in python-glareclient: | |
assignee: | nobody → Mike Fedosin (mfedosin) |
Changed in python-glareclient: | |
assignee: | Mike Fedosin (mfedosin) → Ralf Haferkamp (rhafer) |
status: | New → In Progress |
This test also fails if the list order is different than expected:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.unit. v1.test_ artifacts. TestController. test_get_ type_list tests.unit. v1.test_ artifacts. TestController. test_get_ type_list ------- ------- ------- ------- ------- ------- ------- ------- ------- >>/glareclient/ tests/unit/ v1/test_ artifacts. py", line 126, in test_get_type_list assertEqual( expected_ types, self.c. get_type_ list()) python3/ dist-packages/ testtools/ testcase. py", line 350, in assertEqual assertThat( observed, matcher, message) python3/ dist-packages/ testtools/ testcase. py", line 435, in assertThat matchers. _impl.MismatchE rror: [('a', 1), ('b', 2)] != [('b', 2), ('a', 1)]
FAIL: glareclient.
glareclient.
-------
_StringException: Traceback (most recent call last):
File "/<<PKGBUILDDIR
self.
File "/usr/lib/
self.
File "/usr/lib/
raise mismatch_error
testtools.