~rvb/maas/ephemeral-simplestreams

« back to all changes in this revision

Viewing changes to maastest/utils.py

  • Committer: Graham Binns
  • Date: 2013-11-14 12:40:40 UTC
  • mfrom: (15.2.23 enable-api)
  • Revision ID: graham.binns@canonical.com-20131114124040-rwlxzqwzome6xd9o
[r=allenap][author=gmb] An API client is now available to maastest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    return retcode, stdout, stderr
47
47
 
48
48
 
 
49
def get_uri(path):
 
50
    """GET an API V1 URI.
 
51
 
 
52
    :return: The API URI.
 
53
    """
 
54
    api_root = '/api/1.0/'
 
55
    return api_root + path
 
56
 
 
57
 
49
58
BINARY = ContentType("application", "octet-stream")
50
59
 
51
60