]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
test_metadata_agent: don't check implementation details
authorIhar Hrachyshka <ihrachys@redhat.com>
Fri, 27 Feb 2015 12:35:22 +0000 (13:35 +0100)
committerIhar Hrachyshka <ihrachys@redhat.com>
Tue, 3 Mar 2015 16:35:13 +0000 (17:35 +0100)
commit5c606875ac081479b4be46e07a44d9e3e5ae8a62
tree066c2f4de7b1f198eb95b34c208211500f9567eb
parent453cbf4d62eff3217811ddc8a226cff35ea13279
test_metadata_agent: don't check implementation details

TestUnixDomainMetadataProxy tests too many implementation details when
checking cases of existing and non-existing socket file. Reduce mock
checks to the minimum needed to test for expected behaviour.

Otherwise test may catch wrong isdir() calls (f.e. when policies are
initialized) and fail (I experienced it in local checkout).

Change-Id: I0f85730e5611a71290542f23f8bdcaaaadbef42c
neutron/tests/unit/test_metadata_agent.py