def test_lattice_snapshot(self): lattice = create_lattice() with self.assertRaises(TypeError): snapshot(lattice, "fail.png")
def test_lattice_show(self): lattice = create_lattice() with self.assertRaises(TypeError): show(lattice)