Code Duplication    Length = 17-17 lines in 2 locations

tests/protocols/gmpv214/entities/scanners/test_create_scanner.py 1 location

@@ 101-117 (lines=17) @@
98
                credential_id='c1',
99
            )
100
101
    def test_create_scanner_missing_scanner_type(self):
102
        with self.assertRaises(RequiredArgument):
103
            self.gmp.create_scanner(
104
                name='foo',
105
                host='localhost',
106
                port=1234,
107
                scanner_type=None,
108
                credential_id='c1',
109
            )
110
111
        with self.assertRaises(RequiredArgument):
112
            self.gmp.create_scanner(
113
                name='foo',
114
                host='localhost',
115
                port=1234,
116
                scanner_type='',
117
                credential_id='c1',
118
            )
119
120
    def test_create_scanner_missing_credential_id(self):

tests/protocols/gmpv208/entities/scanners/test_create_scanner.py 1 location

@@ 101-117 (lines=17) @@
98
                credential_id='c1',
99
            )
100
101
    def test_create_scanner_missing_scanner_type(self):
102
        with self.assertRaises(RequiredArgument):
103
            self.gmp.create_scanner(
104
                name='foo',
105
                host='localhost',
106
                port=1234,
107
                scanner_type=None,
108
                credential_id='c1',
109
            )
110
111
        with self.assertRaises(RequiredArgument):
112
            self.gmp.create_scanner(
113
                name='foo',
114
                host='localhost',
115
                port=1234,
116
                scanner_type='',
117
                credential_id='c1',
118
            )
119
120
    def test_create_scanner_missing_credential_id(self):