[libvirt] [dbus PATCH v2 06/17] Test Destroy method for Interface Interface

Katerina Koukiou kkoukiou at redhat.com
Tue Jul 24 09:32:37 UTC 2018


On Fri, Jul 20, 2018 at 02:34:50PM -0400, Anya Harter wrote:
> Signed-off-by: Anya Harter <aharter at redhat.com>
> ---
>  tests/test_interface.py | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/tests/test_interface.py b/tests/test_interface.py
> index 88be5dc..62fd517 100755
> --- a/tests/test_interface.py
> +++ b/tests/test_interface.py
> @@ -7,6 +7,10 @@ class TestInterface(libvirttest.BaseTestClass):
>      """ Tests for methods and properties of the Interface interface
>      """
>  
> +    def test_interface_destroy(self):
> +        _,interface_obj = self.interface_create()

Same as previous patch, interface_create should be fixture and ran at
setup of the test.
I 'll fix it in seperate patch.

> +        interface_obj.Destroy(0)
> +
>      def test_interface_create(self):
>          _,interface_obj = self.interface_create()
>          interface_obj.Destroy(0)
> -- 
> 2.17.1
> 
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list

Reviewed-by: Katerina Koukiou <kkoukiou at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180724/d88237a6/attachment-0001.sig>


More information about the libvir-list mailing list