from testtools import TestCase
from mock import Mock
from . import makeprefs


class UploadTest(TestCase):
    def setUp(self):
        super(UploadTest, self).setUp()

    def tearDown(self):
        super(UploadTest, self).tearDown()

    def _makeit(self, *args, **kw):
        from lacli.upload import Upload
        return Upload(*args,  **kw)

    def test_upload(self):
        assert self._makeit(Mock(), makeprefs()['upload'])

@@ -50,32 +50,8 @@
 ock%0A
-from . import makeprefs%0A
 %0A%0Acl
@@ -386,27 +386,10 @@
 (), 
-makeprefs()%5B'upload'%5D
+4, 4
 )%0A

fix unit test