Skip to content

Commit 9bad15e

Browse files
committed
Rename Gmpv225TestCase to GMPTestCase
The version is already encoded into the module name. For implementing a new protocol version it's easier when the version in not included in all test class names.
1 parent 7437d29 commit 9bad15e

39 files changed

+241
-287
lines changed

tests/protocols/gmpv225/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
from .. import GmpTestCase
1010

1111

12-
class Gmpv225TestCase(GmpTestCase):
12+
class GMPTestCase(GmpTestCase):
1313
gmp_class = GMPv225

tests/protocols/gmpv225/entities/test_alerts.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,36 @@
1313
GmpTestAlertTestMixin,
1414
GmpTriggerAlertTestMixin,
1515
)
16-
from ...gmpv225 import Gmpv225TestCase
16+
from ...gmpv225 import GMPTestCase
1717

1818

19-
class Gmpv225CloneAlertTestCase(GmpCloneAlertTestMixin, Gmpv225TestCase):
19+
class Gmpv225CloneAlertTestCase(GmpCloneAlertTestMixin, GMPTestCase):
2020
pass
2121

2222

23-
class Gmpv225CreateAlertTestCase(GmpCreateAlertTestMixin, Gmpv225TestCase):
23+
class Gmpv225CreateAlertTestCase(GmpCreateAlertTestMixin, GMPTestCase):
2424
pass
2525

2626

27-
class Gmpv225DeleteAlertTestCase(GmpDeleteAlertTestMixin, Gmpv225TestCase):
27+
class Gmpv225DeleteAlertTestCase(GmpDeleteAlertTestMixin, GMPTestCase):
2828
pass
2929

3030

31-
class Gmpv225GetAlertTestCase(GmpGetAlertTestMixin, Gmpv225TestCase):
31+
class Gmpv225GetAlertTestCase(GmpGetAlertTestMixin, GMPTestCase):
3232
pass
3333

3434

35-
class Gmpv225GetAlertsTestCase(GmpGetAlertsTestMixin, Gmpv225TestCase):
35+
class Gmpv225GetAlertsTestCase(GmpGetAlertsTestMixin, GMPTestCase):
3636
pass
3737

3838

39-
class Gmpv225ModifyAlertTestCase(GmpModifyAlertTestMixin, Gmpv225TestCase):
39+
class Gmpv225ModifyAlertTestCase(GmpModifyAlertTestMixin, GMPTestCase):
4040
pass
4141

4242

43-
class Gmpv225TestAlertTestCase(GmpTestAlertTestMixin, Gmpv225TestCase):
43+
class Gmpv225TestAlertTestCase(GmpTestAlertTestMixin, GMPTestCase):
4444
pass
4545

4646

47-
class Gmpv225TriggerAlertTestCase(GmpTriggerAlertTestMixin, Gmpv225TestCase):
47+
class Gmpv225TriggerAlertTestCase(GmpTriggerAlertTestMixin, GMPTestCase):
4848
pass

tests/protocols/gmpv225/entities/test_audits.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,40 +14,40 @@
1414
GmpStartAuditTestMixin,
1515
GmpStopAuditTestMixin,
1616
)
17-
from ...gmpv225 import Gmpv225TestCase
17+
from ...gmpv225 import GMPTestCase
1818

1919

20-
class Gmpv225CloneAuditTestCase(GmpCloneAuditTestMixin, Gmpv225TestCase):
20+
class Gmpv225CloneAuditTestCase(GmpCloneAuditTestMixin, GMPTestCase):
2121
pass
2222

2323

24-
class Gmpv225CreateAuditTestCase(GmpCreateAuditTestMixin, Gmpv225TestCase):
24+
class Gmpv225CreateAuditTestCase(GmpCreateAuditTestMixin, GMPTestCase):
2525
pass
2626

2727

28-
class Gmpv225DeleteAuditTestCase(GmpDeleteAuditTestMixin, Gmpv225TestCase):
28+
class Gmpv225DeleteAuditTestCase(GmpDeleteAuditTestMixin, GMPTestCase):
2929
pass
3030

3131

32-
class Gmpv225GetAuditTestCase(GmpGetAuditTestMixin, Gmpv225TestCase):
32+
class Gmpv225GetAuditTestCase(GmpGetAuditTestMixin, GMPTestCase):
3333
pass
3434

3535

36-
class Gmpv225GetAuditsTestCase(GmpGetAuditsTestMixin, Gmpv225TestCase):
36+
class Gmpv225GetAuditsTestCase(GmpGetAuditsTestMixin, GMPTestCase):
3737
pass
3838

3939

40-
class Gmpv225ModifyAuditTestCase(GmpModifyAuditTestMixin, Gmpv225TestCase):
40+
class Gmpv225ModifyAuditTestCase(GmpModifyAuditTestMixin, GMPTestCase):
4141
pass
4242

4343

44-
class Gmpv225ResumeAuditTestCase(GmpResumeAuditTestMixin, Gmpv225TestCase):
44+
class Gmpv225ResumeAuditTestCase(GmpResumeAuditTestMixin, GMPTestCase):
4545
pass
4646

4747

48-
class Gmpv225StartAuditTestCase(GmpStartAuditTestMixin, Gmpv225TestCase):
48+
class Gmpv225StartAuditTestCase(GmpStartAuditTestMixin, GMPTestCase):
4949
pass
5050

5151

52-
class Gmpv225StopAuditTestCase(GmpStopAuditTestMixin, Gmpv225TestCase):
52+
class Gmpv225StopAuditTestCase(GmpStopAuditTestMixin, GMPTestCase):
5353
pass

tests/protocols/gmpv225/entities/test_credentials.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,34 @@
1111
GmpGetCredentialTestMixin,
1212
GmpModifyCredentialTestMixin,
1313
)
14-
from ...gmpv225 import Gmpv225TestCase
14+
from ...gmpv225 import GMPTestCase
1515

1616

17-
class Gmpv225CloneCredentialTestCase(
18-
GmpCloneCredentialTestMixin, Gmpv225TestCase
19-
):
17+
class Gmpv225CloneCredentialTestCase(GmpCloneCredentialTestMixin, GMPTestCase):
2018
pass
2119

2220

2321
class Gmpv225CreateCredentialTestCase(
24-
GmpCreateCredentialTestMixin, Gmpv225TestCase
22+
GmpCreateCredentialTestMixin, GMPTestCase
2523
):
2624
pass
2725

2826

2927
class Gmpv225DeleteCredentialTestCase(
30-
GmpDeleteCredentialTestMixin, Gmpv225TestCase
28+
GmpDeleteCredentialTestMixin, GMPTestCase
3129
):
3230
pass
3331

3432

35-
class Gmpv225GetCredentialTestCase(GmpGetCredentialTestMixin, Gmpv225TestCase):
33+
class Gmpv225GetCredentialTestCase(GmpGetCredentialTestMixin, GMPTestCase):
3634
pass
3735

3836

39-
class Gmpv225GetCredentialsTestCase(
40-
GmpGetCredentialsTestMixin, Gmpv225TestCase
41-
):
37+
class Gmpv225GetCredentialsTestCase(GmpGetCredentialsTestMixin, GMPTestCase):
4238
pass
4339

4440

4541
class Gmpv225ModifyCredentialTestCase(
46-
GmpModifyCredentialTestMixin, Gmpv225TestCase
42+
GmpModifyCredentialTestMixin, GMPTestCase
4743
):
4844
pass

tests/protocols/gmpv225/entities/test_filters.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@
1111
GmpGetFilterTestMixin,
1212
GmpModifyFilterTestMixin,
1313
)
14-
from ...gmpv225 import Gmpv225TestCase
14+
from ...gmpv225 import GMPTestCase
1515

1616

17-
class Gmpv225DeleteFilterTestCase(GmpDeleteFilterTestMixin, Gmpv225TestCase):
17+
class Gmpv225DeleteFilterTestCase(GmpDeleteFilterTestMixin, GMPTestCase):
1818
pass
1919

2020

21-
class Gmpv225GetFilterTestCase(GmpGetFilterTestMixin, Gmpv225TestCase):
21+
class Gmpv225GetFilterTestCase(GmpGetFilterTestMixin, GMPTestCase):
2222
pass
2323

2424

25-
class Gmpv225GetFiltersTestCase(GmpGetFiltersTestMixin, Gmpv225TestCase):
25+
class Gmpv225GetFiltersTestCase(GmpGetFiltersTestMixin, GMPTestCase):
2626
pass
2727

2828

29-
class Gmpv225CloneFilterTestCase(GmpCloneFilterTestMixin, Gmpv225TestCase):
29+
class Gmpv225CloneFilterTestCase(GmpCloneFilterTestMixin, GMPTestCase):
3030
pass
3131

3232

33-
class Gmpv225CreateFilterTestCase(GmpCreateFilterTestMixin, Gmpv225TestCase):
33+
class Gmpv225CreateFilterTestCase(GmpCreateFilterTestMixin, GMPTestCase):
3434
pass
3535

3636

37-
class Gmpv225ModifyFilterTestCase(GmpModifyFilterTestMixin, Gmpv225TestCase):
37+
class Gmpv225ModifyFilterTestCase(GmpModifyFilterTestMixin, GMPTestCase):
3838
pass

tests/protocols/gmpv225/entities/test_groups.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@
1111
GmpGetGroupTestMixin,
1212
GmpModifyGroupTestMixin,
1313
)
14-
from ...gmpv225 import Gmpv225TestCase
14+
from ...gmpv225 import GMPTestCase
1515

1616

17-
class Gmpv225DeleteGroupTestCase(GmpDeleteGroupTestMixin, Gmpv225TestCase):
17+
class Gmpv225DeleteGroupTestCase(GmpDeleteGroupTestMixin, GMPTestCase):
1818
pass
1919

2020

21-
class Gmpv225GetGroupTestCase(GmpGetGroupTestMixin, Gmpv225TestCase):
21+
class Gmpv225GetGroupTestCase(GmpGetGroupTestMixin, GMPTestCase):
2222
pass
2323

2424

25-
class Gmpv225GetGroupsTestCase(GmpGetGroupsTestMixin, Gmpv225TestCase):
25+
class Gmpv225GetGroupsTestCase(GmpGetGroupsTestMixin, GMPTestCase):
2626
pass
2727

2828

29-
class Gmpv225CloneGroupTestCase(GmpCloneGroupTestMixin, Gmpv225TestCase):
29+
class Gmpv225CloneGroupTestCase(GmpCloneGroupTestMixin, GMPTestCase):
3030
pass
3131

3232

33-
class Gmpv225CreateGroupTestCase(GmpCreateGroupTestMixin, Gmpv225TestCase):
33+
class Gmpv225CreateGroupTestCase(GmpCreateGroupTestMixin, GMPTestCase):
3434
pass
3535

3636

37-
class Gmpv225ModifyGroupTestCase(GmpModifyGroupTestMixin, Gmpv225TestCase):
37+
class Gmpv225ModifyGroupTestCase(GmpModifyGroupTestMixin, GMPTestCase):
3838
pass

tests/protocols/gmpv225/entities/test_hosts.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@
1010
GmpGetHostTestMixin,
1111
GmpModifyHostTestMixin,
1212
)
13-
from ...gmpv225 import Gmpv225TestCase
13+
from ...gmpv225 import GMPTestCase
1414

1515

16-
class Gmpv225CreateHostTestCase(GmpCreateHostTestMixin, Gmpv225TestCase):
16+
class Gmpv225CreateHostTestCase(GmpCreateHostTestMixin, GMPTestCase):
1717
pass
1818

1919

20-
class Gmpv225DeleteHostTestCase(GmpDeleteHostTestMixin, Gmpv225TestCase):
20+
class Gmpv225DeleteHostTestCase(GmpDeleteHostTestMixin, GMPTestCase):
2121
pass
2222

2323

24-
class Gmpv225GetHostTestCase(GmpGetHostTestMixin, Gmpv225TestCase):
24+
class Gmpv225GetHostTestCase(GmpGetHostTestMixin, GMPTestCase):
2525
pass
2626

2727

28-
class Gmpv225GetHostsTestCase(GmpGetHostsTestMixin, Gmpv225TestCase):
28+
class Gmpv225GetHostsTestCase(GmpGetHostsTestMixin, GMPTestCase):
2929
pass
3030

3131

32-
class Gmpv225ModifyHostTestCase(GmpModifyHostTestMixin, Gmpv225TestCase):
32+
class Gmpv225ModifyHostTestCase(GmpModifyHostTestMixin, GMPTestCase):
3333
pass

tests/protocols/gmpv225/entities/test_notes.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@
1111
GmpGetNoteTestMixin,
1212
GmpModifyNoteTestMixin,
1313
)
14-
from ...gmpv225 import Gmpv225TestCase
14+
from ...gmpv225 import GMPTestCase
1515

1616

17-
class Gmpv225DeleteNoteTestCase(GmpDeleteNoteTestMixin, Gmpv225TestCase):
17+
class Gmpv225DeleteNoteTestCase(GmpDeleteNoteTestMixin, GMPTestCase):
1818
pass
1919

2020

21-
class Gmpv225GetNoteTestCase(GmpGetNoteTestMixin, Gmpv225TestCase):
21+
class Gmpv225GetNoteTestCase(GmpGetNoteTestMixin, GMPTestCase):
2222
pass
2323

2424

25-
class Gmpv225GetNotesTestCase(GmpGetNotesTestMixin, Gmpv225TestCase):
25+
class Gmpv225GetNotesTestCase(GmpGetNotesTestMixin, GMPTestCase):
2626
pass
2727

2828

29-
class Gmpv225CloneNoteTestCase(GmpCloneNoteTestMixin, Gmpv225TestCase):
29+
class Gmpv225CloneNoteTestCase(GmpCloneNoteTestMixin, GMPTestCase):
3030
pass
3131

3232

33-
class Gmpv225CreateNoteTestCase(GmpCreateNoteTestMixin, Gmpv225TestCase):
33+
class Gmpv225CreateNoteTestCase(GmpCreateNoteTestMixin, GMPTestCase):
3434
pass
3535

3636

37-
class Gmpv225ModifyNoteTestCase(GmpModifyNoteTestMixin, Gmpv225TestCase):
37+
class Gmpv225ModifyNoteTestCase(GmpModifyNoteTestMixin, GMPTestCase):
3838
pass

tests/protocols/gmpv225/entities/test_operating_systems.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@
99
GmpGetOperatingSystemTestMixin,
1010
GmpModifyOperatingSystemTestMixin,
1111
)
12-
from ...gmpv225 import Gmpv225TestCase
12+
from ...gmpv225 import GMPTestCase
1313

1414

1515
class Gmpv225DeleteOperatingSystemTestCase(
16-
GmpDeleteOperatingSystemTestMixin, Gmpv225TestCase
16+
GmpDeleteOperatingSystemTestMixin, GMPTestCase
1717
):
1818
pass
1919

2020

2121
class Gmpv225GetOperatingSystemTestCase(
22-
GmpGetOperatingSystemTestMixin, Gmpv225TestCase
22+
GmpGetOperatingSystemTestMixin, GMPTestCase
2323
):
2424
pass
2525

2626

2727
class Gmpv225GetOperatingSystemsTestCase(
28-
GmpGetOperatingSystemsTestMixin, Gmpv225TestCase
28+
GmpGetOperatingSystemsTestMixin, GMPTestCase
2929
):
3030
pass
3131

3232

3333
class Gmpv225ModifyOperatingSystemTestCase(
34-
GmpModifyOperatingSystemTestMixin, Gmpv225TestCase
34+
GmpModifyOperatingSystemTestMixin, GMPTestCase
3535
):
3636
pass

tests/protocols/gmpv225/entities/test_overrides.py

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,28 @@
1111
GmpGetOverrideTestMixin,
1212
GmpModifyOverrideTestMixin,
1313
)
14-
from ...gmpv225 import Gmpv225TestCase
14+
from ...gmpv225 import GMPTestCase
1515

1616

17-
class Gmpv225CloneOverrideTestCase(GmpCloneOverrideTestMixin, Gmpv225TestCase):
17+
class Gmpv225CloneOverrideTestCase(GmpCloneOverrideTestMixin, GMPTestCase):
1818
pass
1919

2020

21-
class Gmpv225CreateOverrideTestCase(
22-
GmpCreateOverrideTestMixin, Gmpv225TestCase
23-
):
21+
class Gmpv225CreateOverrideTestCase(GmpCreateOverrideTestMixin, GMPTestCase):
2422
pass
2523

2624

27-
class Gmpv225DeleteOverrideTestCase(
28-
GmpDeleteOverrideTestMixin, Gmpv225TestCase
29-
):
25+
class Gmpv225DeleteOverrideTestCase(GmpDeleteOverrideTestMixin, GMPTestCase):
3026
pass
3127

3228

33-
class Gmpv225GetOverrideTestCase(GmpGetOverrideTestMixin, Gmpv225TestCase):
29+
class Gmpv225GetOverrideTestCase(GmpGetOverrideTestMixin, GMPTestCase):
3430
pass
3531

3632

37-
class Gmpv225GetOverridesTestCase(GmpGetOverridesTestMixin, Gmpv225TestCase):
33+
class Gmpv225GetOverridesTestCase(GmpGetOverridesTestMixin, GMPTestCase):
3834
pass
3935

4036

41-
class Gmpv225ModifyOverrideTestCase(
42-
GmpModifyOverrideTestMixin, Gmpv225TestCase
43-
):
37+
class Gmpv225ModifyOverrideTestCase(GmpModifyOverrideTestMixin, GMPTestCase):
4438
pass

0 commit comments

Comments
 (0)