def test_pylab_basic(self):
        import matplotlib.pyplot as plt
        import numpy as np

        t = np.arange(0., 5., 0.2)

        plt.plot(t, t, 'r--', t, t ** 2, 'bs', t, t ** 3, 'g^')

        s = str(vlogging.VisualRecord(
            title="title",
            imgs=plt,
            footnotes="footnotes"))

        self.assertTrue("title" in s)
        self.assertTrue(s in "footnotes")
        self.assertTrue("<pre>" in s)
        self.assertEqual(s.count("<img"), 1)
dataset/ETHPy150Open dchaplinsky/visual-logging/vlogging/tests/basic.py/BasicTestCase.test_pylab_basic/swapped operands of `in`