def setUp(s): s.wide = GdkPixbuf.Pixbuf.new(GdkPixbuf.Colorspace.RGB, True, 8, 150, 10) s.high = GdkPixbuf.Pixbuf.new(GdkPixbuf.Colorspace.RGB, True, 8, 10, 100) s.small = GdkPixbuf.Pixbuf.new(GdkPixbuf.Colorspace.RGB, True, 8, 10, 20) s.filename = os.path.join(getcwd(), "test_thumbnail.png") s.wide.savev(s.filename, "png", [], [])
def setUp(s): s.wide = GdkPixbuf.Pixbuf.new( GdkPixbuf.Colorspace.RGB, True, 8, 150, 10) s.high = GdkPixbuf.Pixbuf.new( GdkPixbuf.Colorspace.RGB, True, 8, 10, 100) s.small = GdkPixbuf.Pixbuf.new( GdkPixbuf.Colorspace.RGB, True, 8, 10, 20) s.filename = os.path.join(getcwd(), "test_thumbnail.png") s.wide.savev(s.filename, "png", [], [])
def test_set_current_dir(self): set_current_dir(fsnative(u".")) assert get_current_dir() == getcwd()
def test_Tgetcwd(self): self.assertTrue(isinstance(getcwd(), fsnative))
def test_Tgetcwd(self): self.assertTrue(is_fsnative(getcwd()))
def test_getcwd(): assert isinstance(getcwd(), fsnative)