Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/bioblend/_tests/TestGalaxyRoles.py @ 2:6af9afd405e9 draft
"planemo upload commit 0a63dd5f4d38a1f6944587f52a8cd79874177fc1"
| author | shellac |
|---|---|
| date | Thu, 14 May 2020 14:56:58 -0400 |
| parents | 26e78fe6e8c4 |
| children |
comparison
equal
deleted
inserted
replaced
| 1:75ca89e9b81c | 2:6af9afd405e9 |
|---|---|
| 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(TestGalaxyRoles, self).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']) |
