@unittest.skipUnless(HAVE_IPYTHON, "requires IPython")
    def test__pretty(self):
        for i, signal in enumerate(self.signals):
            prepr = pretty(signal)
            targ = (('AnalogSignal in %s with %s %s values\n' %
                     (signal.units, len(signal), signal.dtype)) +
                    ('annotations: %s\n' % signal.annotations) +
                    ('channel index: %s\n' % signal.channel_index) +
                    (signal.sampling_rate % 'sampling rate: %s\n') +
                    ('time: %s to %s' % (signal.t_start, signal.t_stop)))

            self.assertEqual(prepr, targ)
dataset/ETHPy150Open NeuralEnsemble/python-neo/neo/test/coretest/test_analogsignal.py/TestAnalogSignalProperties.test__pretty/swapped operands of `%`