]> git.proxmox.com Git - mirror_qemu.git/commitdiff
VNC Acceptance test: simplify test names
authorCleber Rosa <crosa@redhat.com>
Fri, 7 Jun 2019 15:22:21 +0000 (11:22 -0400)
committerCleber Rosa <crosa@redhat.com>
Thu, 29 Aug 2019 01:10:15 +0000 (21:10 -0400)
The test name is composed of the class name and method name, so it
looks like there's some redundancy here that we can eliminate.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190607152223.9467-7-crosa@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
tests/acceptance/vnc.py

index 064ceabcc1e2ba84bd7d1f83e6c28b72a99273cd..3f40bc2be11182b38d026105a315a6196eefba96 100644 (file)
@@ -34,7 +34,7 @@ class Vnc(Test):
         self.assertEqual(set_password_response['error']['desc'],
                          'Could not set password')
 
-    def test_vnc_change_password_requires_a_password(self):
+    def test_change_password_requires_a_password(self):
         self.vm.add_args('-nodefaults', '-S', '-vnc', ':0')
         self.vm.launch()
         self.assertTrue(self.vm.qmp('query-vnc')['return']['enabled'])
@@ -48,7 +48,7 @@ class Vnc(Test):
         self.assertEqual(set_password_response['error']['desc'],
                          'Could not set password')
 
-    def test_vnc_change_password(self):
+    def test_change_password(self):
         self.vm.add_args('-nodefaults', '-S', '-vnc', ':0,password')
         self.vm.launch()
         self.assertTrue(self.vm.qmp('query-vnc')['return']['enabled'])