Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/bioblend/_tests/TestGalaxyRoles.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
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) | |
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']) |