示例#1
0
 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", [], [])
示例#3
0
 def test_set_current_dir(self):
     set_current_dir(fsnative(u"."))
     assert get_current_dir() == getcwd()
示例#4
0
 def test_Tgetcwd(self):
     self.assertTrue(isinstance(getcwd(), fsnative))
示例#5
0
 def test_set_current_dir(self):
     set_current_dir(fsnative(u"."))
     assert get_current_dir() == getcwd()
示例#6
0
 def test_Tgetcwd(self):
     self.assertTrue(is_fsnative(getcwd()))
示例#7
0
 def test_Tgetcwd(self):
     self.assertTrue(isinstance(getcwd(), fsnative))
示例#8
0
文件: test_api.py 项目: lazka/senf
def test_getcwd():
    assert isinstance(getcwd(), fsnative)
示例#9
0
 def test_Tgetcwd(self):
     self.assertTrue(is_fsnative(getcwd()))