Пример #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", [], [])
Пример #2
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", [], [])
Пример #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
def test_getcwd():
    assert isinstance(getcwd(), fsnative)
Пример #9
0
 def test_Tgetcwd(self):
     self.assertTrue(is_fsnative(getcwd()))