Esempio n. 1
0
 def setUp(self):
     self.fname = '../sample/sample.gif'
     self.content_type = 'image/gif'
     self.dims = dimensions.dimensions(self.fname)
Esempio n. 2
0
 def test_handles_multiple_files(self):
     fnames = ('../sample/sample.gif', '../sample/sample.png')
     dims = dimensions.dimensions(fnames)
     self.assertTrue(type(dims) is list)
Esempio n. 3
0
 def test_handles_single_file(self):
     fname = '../sample/sample.png'
     dims = dimensions.dimensions(fname)
     self.assertTrue(type(dims) is tuple)
Esempio n. 4
0
 def setUp(self):
     self.fname = "../sample/sample.gif"
     self.content_type = "image/gif"
     self.dims = dimensions.dimensions(self.fname)
Esempio n. 5
0
 def test_handles_multiple_files(self):
     fnames = ("../sample/sample.gif", "../sample/sample.png")
     dims = dimensions.dimensions(fnames)
     self.assertTrue(type(dims) is list)
Esempio n. 6
0
 def test_handles_single_file(self):
     fname = "../sample/sample.png"
     dims = dimensions.dimensions(fname)
     self.assertTrue(type(dims) is tuple)