pulp_2_tests.tests.rpm.cli.test_langpacks¶
Location: Pulp 2 Tests → Tests → pulp_2_tests.tests.rpm.cli.test_langpacks
Tests for Pulp’s langpack support.
-
class
pulp_2_tests.tests.rpm.cli.test_langpacks.
UploadAndRemoveLangpacksTestCase
(methodName='runTest')¶ Bases:
unittest.case.TestCase
Test whether one can upload to and remove langpacks from a repository.
This test targets Pulp Smash #270. The test steps are as follows:
- Create a repository.
- Upload langpacks to the repository. Verify the correct number of langpacks are present.
- Remove langpacks from the repository. Verify that no langpacks are present.
-
classmethod
setUpClass
()¶ Create a repository.
-
classmethod
tearDownClass
()¶ Delete the repository created by
setUpClass()
.
-
test_01_upload_langpacks
()¶ Upload a langpack to the repository.
-
test_02_remove_langpacks
()¶ Remove all langpacks from the repository.