Code Duplication    Length = 12-12 lines in 2 locations

tests/protocols/gmpv208/testcmds/test_resume_audit.py 1 location

@@ 24-35 (lines=12) @@
21
from gvm.errors import GvmError
22
23
24
class GmpResumeAuditTestCase:
25
    def test_resume_audit(self):
26
        self.gmp.resume_audit('a1')
27
28
        self.connection.send.has_been_called_with('<resume_task task_id="a1"/>')
29
30
    def test_missing_id(self):
31
        with self.assertRaises(GvmError):
32
            self.gmp.resume_audit(None)
33
34
        with self.assertRaises(GvmError):
35
            self.gmp.resume_audit('')
36
37
38
if __name__ == '__main__':

tests/protocols/gmpv9/testcmds/test_resume_audit.py 1 location

@@ 24-35 (lines=12) @@
21
from gvm.errors import GvmError
22
23
24
class GmpResumeAuditTestCase:
25
    def test_resume_audit(self):
26
        self.gmp.resume_audit('a1')
27
28
        self.connection.send.has_been_called_with('<resume_task task_id="a1"/>')
29
30
    def test_missing_id(self):
31
        with self.assertRaises(GvmError):
32
            self.gmp.resume_audit(None)
33
34
        with self.assertRaises(GvmError):
35
            self.gmp.resume_audit('')
36
37
38
if __name__ == '__main__':