def create_test_data(self):
        base_path = os.path.join("tests", "data")
        test_data_paths = [
            os.path.join(base_path, "create_cisco_test_data.json"),
            os.path.join(base_path, "create_juniper_test_data.json"),
        ]

        create_real_test_data(server=self.server_url,
                              username=self.ADMIN_USERNAME,
                              password=self.ADMIN_PASSWORD,
                              test_data_paths=test_data_paths)
    def create_test_data(self):
        base_path = os.path.join("tests", "data")
        test_data_paths = [
            os.path.join(base_path, "create_cisco_test_data.json"),
            os.path.join(base_path, "create_juniper_test_data.json"),
        ]

        create_real_test_data(server=self.server_url,
                              username=self.API_USERNAME,
                              password=self.API_PASSWORD,
                              test_data_paths=test_data_paths)
from tests.api import create_real_test_data
import sys


if __name__ == "__main__":
    if len(sys.argv) == 1:
        print("invalid argument, use api_create_test_data.py <server_name> [<type of data>]")
        print("\ttype of data: real - real test data")
    else:
        print("Use Server: %s" % sys.argv[1])
        print("create real test data")
        create_real_test_data(sys.argv[1], "admin", "admin")
from tests.api import create_real_test_data
import sys

if __name__ == "__main__":
    if len(sys.argv) == 1:
        print(
            "invalid argument, use api_create_test_data.py <server_name> [<type of data>]"
        )
        print("\ttype of data: real - real test data")
    else:
        print("Use Server: %s" % sys.argv[1])
        print("create real test data")
        create_real_test_data(sys.argv[1], "admin", "admin")