'BlockingConnection: Create and close connection'

def test(self):

    connection = self._connect()
    self.assertIsInstance(connection, pika.BlockingConnection)
    self.assertTrue(connection.is_open)
    self.assertFalse(connection.is_closed)
    self.assertFalse(connection.is_closing)
    connection.close()
    self.assertTrue(connection.is_closed)
    self.assertFalse(connection.is_open)
    self.assertFalse(connection.is_closing)
