def test_name_value(self): obj = base.AMQPClass(self.chan, 'Foo') self.assertEqual(obj.name, 'Foo')
def test_name_unicode(self): obj = base.AMQPClass(self.chan, unicode('Foo')) self.assertIsInstance(obj.name, unicode)
def test_name_bytes(self): obj = base.AMQPClass(self.chan, b'Foo') self.assertIsInstance(obj.name, bytes)
def test_name_str(self): obj = base.AMQPClass(self.chan, 'Foo') self.assertIsInstance(obj.name, str)
def test_channel_valid(self): obj = base.AMQPClass(self.chan, 'Foo') self.assertEqual(obj.channel, self.chan)