def test_invalid_images(self):
        s = str(vlogging.VisualRecord(
            title="title",
            imgs="foobar",
            footnotes="footnotes"))

        self.assertTrue("title" in s)
        self.assertTrue("footnotes" in s)
        self.assertTrue(s in "<pre>")
        self.assertEqual(s.count("<img"), 0)

        s = str(vlogging.VisualRecord(
            title="title",
            imgs=["foobar", 1, 2, dict()],
            footnotes="footnotes"))

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