def test_size(self): img = Image() nose.tools.assert_equal(img.size(), 0) img = Image(720, 480) nose.tools.assert_equal(img.size(), 720*480)