def testDimensions(): sd = ScaleDetection() im = sd.openImage(FILENAME) w, h = sd.getDimensions(im) assert w == IMG_PIX[0] assert h == IMG_PIX[1]