'Tests that depth can be reshaped to the x dimension.'

def testReshapeDepth(self):

    fake = tf.placeholder(tf.float32, shape=(None, None, None, self.depth), name='inputs')
    real = _rand(self.batch_size, self.im_height, self.im_width, self.depth)
    with self.test_session() as sess:
        outputs = shapes.transposing_reshape(fake, src_dim=3, part_a=4, part_b=(-1), dest_dim_a=2, dest_dim_b=3)
        res_image = sess.run([outputs], feed_dict={fake: real})
        self.assertEqual(tuple(res_image[0].shape), (self.batch_size, self.im_height, (self.im_width * 4), (self.depth / 4)))
