def create_configs(self):
    base = {'host': 'localhost', 'port': 27017, 'database': self.DB, 'collection': None}
    files = []
    for coll in (self.SRC, self.DST):
        f = tempfile.NamedTemporaryFile(suffix='.json')
        base['collection'] = coll
        json.dump(base, f)
        f.flush()
        files.append(f)
    return files
def create_configs(self):
    base = {'host': 'localhost', 'port': 27017, 'database': self.DB, 'collection': None}
    files = []
    for coll in (self.SRC, self.DST):
        f = tempfile.NamedTemporaryFile(suffix='.json')
        base['collection'] = coll
        json.dump(base, f)
        f.flush()
        files.append(f)
    return files