~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/client.py

  • Committer: Aaron Bentley
  • Date: 2012-01-10 11:16:56 UTC
  • Revision ID: aaron@canonical.com-20120110111656-9daoyj766z8r184a
Add test framework.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from httplib import HTTPConnection
2
 
 
3
 
def put_message(archive_name, file_obj):
4
 
    connection = HTTPConnection('localhost', 8435)
5
 
    connection.request('POST', 'foo', file_obj.read())
6
 
    response = connection.getresponse()
7
 
    print response.status, response.reason
8
 
    data = response.read()
9
 
    print data
 
1
def put_message(archive_name, fileobj):
 
2
    pass