Mercurial > repos > guerler > springsuite
comparison planemo/lib/python3.7/site-packages/bioblend/_tests/TestGalaxyRoles.py @ 0:d30785e31577 draft
"planemo upload commit 6eee67778febed82ddd413c3ca40b3183a3898f1"
| author | guerler |
|---|---|
| date | Fri, 31 Jul 2020 00:18:57 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:d30785e31577 |
|---|---|
| 1 """ | |
| 2 Tests the functionality of the Blend CloudMan API. These tests require working | |
| 3 credentials to supported cloud infrastructure. | |
| 4 """ | |
| 5 import uuid | |
| 6 | |
| 7 from . import GalaxyTestBase | |
| 8 | |
| 9 | |
| 10 class TestGalaxyRoles(GalaxyTestBase.GalaxyTestBase): | |
| 11 | |
| 12 def setUp(self): | |
| 13 super().setUp() | |
| 14 self.name = 'test_%s' % uuid.uuid4().hex | |
| 15 self.description = 'automated test role' | |
| 16 self.role = self.gi.roles.create_role(self.name, self.description)[0] | |
| 17 | |
| 18 def tearDown(self): | |
| 19 # As of 2017/07/26, deleting a role is not possible through the API | |
| 20 pass | |
| 21 | |
| 22 def test_get_roles(self): | |
| 23 roles = self.gi.roles.get_roles() | |
| 24 for role in roles: | |
| 25 self.assertIsNotNone(role['id']) | |
| 26 self.assertIsNotNone(role['name']) | |
| 27 | |
| 28 def test_create_role(self): | |
| 29 self.assertEqual(self.role['name'], self.name) | |
| 30 self.assertEqual(self.role['description'], self.description) | |
| 31 self.assertIsNotNone(self.role['id']) |
