Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/bioblend/_tests/TestGalaxyRoles.py @ 5:9b1c78e6ba9c draft default tip
"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
| author | shellac |
|---|---|
| date | Mon, 01 Jun 2020 08:59:25 -0400 |
| parents | 79f47841a781 |
| children |
comparison
equal
deleted
inserted
replaced
| 4:79f47841a781 | 5:9b1c78e6ba9c |
|---|---|
| 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']) |
