'BlockingChannel: Create and close channel'

def test(self):

    connection = self._connect()
    ch = connection.channel()
    self.assertIsInstance(ch, blocking_connection.BlockingChannel)
    self.assertTrue(ch.is_open)
    self.assertFalse(ch.is_closed)
    self.assertFalse(ch.is_closing)
    self.assertIs(ch.connection, connection)
    ch.close()
    self.assertTrue(ch.is_closed)
    self.assertFalse(ch.is_open)
    self.assertFalse(ch.is_closing)
