Ejemplo n.º 1
0
def find_operations():
    session = Importer(__name__)
    for service in find_services():
        if service == "aws/dynamodb":
            continue
        driver = session.get_driver(service)
        for operation in driver.model.get_operations():
            yield service, operation.name, driver, operation
Ejemplo n.º 2
0
class TestImporter(unittest.TestCase):

    def setUp(self):
        self.importer = Importer(__name__)

    def test_get_driver(self):
        driver = self.importer.get_driver("bigv")
        self.assertTrue(driver.name == "bigv")

    def test_get_client(self):
        client = self.importer.get_client("bigv")
        self.assertTrue(client.name == "bigv")

    def test_client_has_operations(self):
        driver = self.importer.get_client("bigv")
        self.assertTrue(hasattr(driver, "list_virtual_machines"))
Ejemplo n.º 3
0
 def setUp(self):
     self.importer = Importer(__name__)