import unittest
import boto
from bucketeer import commit

class BuckeeterTest(unittest.TestCase):

  global existing_bucket
  existing_bucket = 'bucket.exists'

  def setUp(self):
    # Create a bucket with one file
    connection = boto.connect_s3()
    bucket = connection.create_bucket(existing_bucket)

    return

  def tearDown(self):
    # Remove all test-created buckets and files
    connection = boto.connect_s3()
    bucket = connection.delete_bucket(existing_bucket)
    return

  def testMain(self):
    self.assertTrue(commit)

if __name__ == '__main__':
  unittest.main()

import unittest, boto, os
from bucketeer import commit

class BuckeeterTest(unittest.TestCase):

  global existing_bucket, test_dir
  existing_bucket = 'bucket.exists'
  test_dir = 'bucketeer_test_dir'

  def setUp(self):
    # Create a bucket to test on existing bucket
    connection = boto.connect_s3()
    bucket = connection.create_bucket(existing_bucket)

    # Create directory to house test files
    os.makedirs(test_dir)

    return

  def tearDown(self):
    # Remove bucket created to test on existing bucket
    connection = boto.connect_s3()
    bucket = connection.delete_bucket(existing_bucket)

    # Remove directory created to house test files
    os.rmdir(test_dir)

    return

  def testMain(self):
    self.assertTrue(commit)

if __name__ == '__main__':
  unittest.main()

Add create test file dir to setUp and tearDown
Add create test file dir to setUp and tearDown

May need to revisit and identify best place to put such a directory.
