Commit Graph

11 Commits (59e166b62a11ee4adfc92abea91f0224a4789476)

Author SHA1 Message Date
Sean McGinnis 41a21bc807 Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I130c03e12ddc53ce7ced728a43b10b142f7b066f
Signed-off-by: Sean McGinnis <>
Co-Authored-By: Hiroo Kitamura <>
3 years ago
dharmendra 0be03680e5 Cleanup of .keys()
Cleanup of .keys() from dict_object.keys() *in* operator.

Change-Id: I61b146858d8740cbeb3011a6ed109ecae8da5e4b
3 years ago
Van Hung Pham 7787ef3b0a Using assertFalse(A) instead of assertEqual(False, A)
This patch is to replace assertEqual(False, A) with assertFalse(A), which
the latter is more straightforward and easier to understand.
Similar to a merged patch

Change-Id: I056c2840ed431e3c792f5f1f70f9e7d9e4e22d0b
6 years ago
gong yong sheng a9644cbbad Move unit tests dir to tacker/tests/unit
Some tests are skipped for the time being, will be fixed

Change-Id: Iaaadf8faea9efc63b1e5b9c40ef74072426a539a
Closes-bug: #1617167
6 years ago
qinchunhua 8ea5b7d601 Recover some file permissions
Some file permissions were modified, need to be recovered.

Change-Id: Ib629d4dca4f355eef37e534e4b3f35c1015a5ca9
7 years ago
Kanagaraj Manickam 0f337cb461 Correct the reference and actual parameters in assertEqual
AssertEqual always takes the reference object first param
then actual object as second param, so it corrects
some unit test cases, where postion is not take care properly.


Change-Id: I0d98d28891b19520bd16070e10baa9f6cd07aee0
Partial-Bug: #1259292
7 years ago
gong yong sheng 36aadfc8ea Use oslo policy
Adjust tacker/policy and according to ones
used in neutron.

Change-Id: I93434ce78f87b6e59b5ef6367ea2596a80eb4676
Partial-bug: #1552282
7 years ago
gong yong sheng a7030608a0 Use importutils and service from oslo
This patch removes all service lauching related common

Change-Id: I17fb1eb25480fc902329e51840772b40723139ed
Partial-bug: #1552282
7 years ago
gong yong sheng aaeda502bb Use oslo serialization jsonutils
Change-Id: I081697d987fc7c2bcd4ae73b97aedc058c57a84f
Partial-bug: #1552282
7 years ago
zhangguoqing 0663d08fc1 Keep py3.X compatibility for urllib
Co-Authored-By: Swapnil Kulkarni <>
Change-Id: I6d8a18d5818707baaeae93a04580c43872279706
7 years ago
Isaku Yamahata 6125f5fcab rename neutron/tests to tacker/tests
Change-Id: I8a06ad8acde84b6635b87a9679924443550feaa8
9 years ago