def METHOD_NAME(self):
    ################################################################
    class service(object):
        class files(object):
            class insert(object):
                def __init__(this, body, media_body):
                    this.body = body
                    this.media_body = media_body
                def execute(this):
                    file = {'md5Checksum': ""}
                    return file
    def build(a, b, http):
        self.assertEqual(a, 'drive')
        self.assertEqual(b, 'v2')
        return service()
    setattr(sys.modules[self.gf.__module__], 'build', build)
    ###############################################################
    testfile = open('%s/np' % os.getcwd(), "wb")
    testfile.write("Test text")
    testfile.close()
    self.assertEqual(self.gf.put(), None, "")
    self.gf.namePattern = ''
    self.assertRaises(Exception, self.gf.put)
    os.remove('%s/np' % os.getcwd())