Traceback (most recent call last):
File "neutron/tests/unit/test_post_mortem_debug.py", line 41, in test_exception_handler
mock_print_exception.assert_called_once_with(*exc_info)
File "/opt/stack/neutron/.venv/lib/python2.7/site-packages/mock.py", line 846, in assert_called_once_with
return self.assert_called_with(*args, **kwargs)
File "/opt/stack/neutron/.venv/lib/python2.7/site-packages/mock.py", line 835, in assert_called_with
raise AssertionError(msg)
AssertionError: Expected call: print_exception(<type 'exceptions.AssertionError'>, AssertionError('False is not true',), <traceback object at 0x17b8200>)
Actual call: print_exception(<type 'exceptions.AssertionError'>, AssertionError('False is not true',), <neutron.tests.post_mortem_debug.FilteredTraceback object at 0x17cb290>)
Traceback (most recent call last):
File "neutron/tests/unit/test_dhcp_agent.py", line 1308, in test_get_device_id
uuid5.assert_called_once_with(uuid.NAMESPACE_DNS, 'localhost')
File "/opt/stack/neutron/.venv/lib/python2.7/site-packages/mock.py", line 845, in assert_called_once_with
raise AssertionError(msg)
AssertionError: Expected to be called once. Called 0 times.
Traceback (most recent call last):
File "neutron/tests/unit/test_db_migration.py", line 184, in test_update_head_file_success
mock_open.write.assert_called_once_with('a')
File "/opt/stack/neutron/.venv/lib/python2.7/site-packages/mock.py", line 845, in assert_called_once_with
raise AssertionError(msg)
AssertionError: Expected to be called once. Called 0 times.
After setting the right asserts, a few tests are failing, so we will fix them/the code with this bug:
FAIL: neutron. tests.unit. test_post_ mortem_ debug.TestTestt oolsExceptionHa ndler.test_ exception_ handler ------- ------- ------- ------- ------- ------- ------- ------- -------
-------
Empty attachments:
pythonlogging:''
Traceback (most recent call last): tests/unit/ test_post_ mortem_ debug.py" , line 41, in test_exception_ handler print_exception .assert_ called_ once_with( *exc_info) neutron/ .venv/lib/ python2. 7/site- packages/ mock.py" , line 846, in assert_ called_ once_with called_ with(*args, **kwargs) neutron/ .venv/lib/ python2. 7/site- packages/ mock.py" , line 835, in assert_called_with (<type 'exceptions. AssertionError' >, AssertionError( 'False is not true',), <traceback object at 0x17b8200>) (<type 'exceptions. AssertionError' >, AssertionError( 'False is not true',), <neutron. tests.post_ mortem_ debug.FilteredT raceback object at 0x17cb290>)
File "neutron/
mock_
File "/opt/stack/
return self.assert_
File "/opt/stack/
raise AssertionError(msg)
AssertionError: Expected call: print_exception
Actual call: print_exception
Ran 7 tests in 0.010s
FAILED (failures=1)
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.unit. test_dhcp_ agent.TestDevic eManager. test_get_ device_ id ------- ------- ------- ------- ------- ------- ------- ------- -------
FAIL: neutron.
-------
Empty attachments:
pythonlogging:''
Traceback (most recent call last): tests/unit/ test_dhcp_ agent.py" , line 1308, in test_get_device_id assert_ called_ once_with( uuid.NAMESPACE_ DNS, 'localhost') neutron/ .venv/lib/ python2. 7/site- packages/ mock.py" , line 845, in assert_ called_ once_with
File "neutron/
uuid5.
File "/opt/stack/
raise AssertionError(msg)
AssertionError: Expected to be called once. Called 0 times.
Ran 99 tests in 1.325s
FAILED (failures=1)
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.unit. test_db_ migration. TestCli. test_update_ head_file_ success ------- ------- ------- ------- ------- ------- ------- ------- -------
FAIL: neutron.
-------
Empty attachments:
pythonlogging:''
Traceback (most recent call last): tests/unit/ test_db_ migration. py", line 184, in test_update_ head_file_ success open.write. assert_ called_ once_with( 'a') neutron/ .venv/lib/ python2. 7/site- packages/ mock.py" , line 845, in assert_ called_ once_with
File "neutron/
mock_
File "/opt/stack/
raise AssertionError(msg)
AssertionError: Expected to be called once. Called 0 times.
Ran 15 tests in 0.112s
FAILED (failures=1)