import boto

from unittest import TestCase


class DirectConnectTest(TestCase):
    """
    A very basic test to make sure signatures and
    basic calls work.
    """
    def test_basic(self):
        conn = boto.connect_directconnect()

        response = conn.describe_connections()

        self.assertTrue(response)
        self.assertTrue('connections' in response)
        self.assertIsInstance(response['connections'], list)

import boto

from boto.compat import unittest


class DirectConnectTest(unittest.TestCase):
    """
    A very basic test to make sure signatures and
    basic calls work.
    """
    def test_basic(self):
        conn = boto.connect_directconnect()

        response = conn.describe_connections()

        self.assertTrue(response)
        self.assertTrue('connections' in response)
        self.assertIsInstance(response['connections'], list)

Fix integration test for Python 2.6
Fix integration test for Python 2.6

  import boto
  
- from unittest import TestCase
+ from boto.compat import unittest
  
  
- class DirectConnectTest(TestCase):
+ class DirectConnectTest(unittest.TestCase):
      """
      A very basic test to make sure signatures and
      basic calls work.
      """
      def test_basic(self):
          conn = boto.connect_directconnect()
  
          response = conn.describe_connections()
  
          self.assertTrue(response)
          self.assertTrue('connections' in response)
          self.assertIsInstance(response['connections'], list)
  
Fix integration test for Python 2.6
## Code Before:
import boto

from unittest import TestCase


class DirectConnectTest(TestCase):
    """
    A very basic test to make sure signatures and
    basic calls work.
    """
    def test_basic(self):
        conn = boto.connect_directconnect()

        response = conn.describe_connections()

        self.assertTrue(response)
        self.assertTrue('connections' in response)
        self.assertIsInstance(response['connections'], list)

## Instruction:
Fix integration test for Python 2.6
## Code After:
import boto

from boto.compat import unittest


class DirectConnectTest(unittest.TestCase):
    """
    A very basic test to make sure signatures and
    basic calls work.
    """
    def test_basic(self):
        conn = boto.connect_directconnect()

        response = conn.describe_connections()

        self.assertTrue(response)
        self.assertTrue('connections' in response)
        self.assertIsInstance(response['connections'], list)
