Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/bioblend/_tests/TestGalaxyRoles.py @ 0:26e78fe6e8c4 draft
"planemo upload commit c699937486c35866861690329de38ec1a5d9f783"
author | shellac |
---|---|
date | Sat, 02 May 2020 07:14:21 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:26e78fe6e8c4 |
---|---|
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']) |