def METHOD_NAME(self):
    sql_cmd = "select 1"
    out_file = os.path.join(os.path.dirname(inspect.getfile(self.__class__)),'test.out')
    psql = PSQL(sql_cmd = sql_cmd, out_file = out_file)
    expected_cmdstr = 'psql -a -c \"%s\" &> %s 2>&1' %(sql_cmd, out_file)
    self.assertEquals(re.sub(' +', ' ', psql.cmdStr.strip()), expected_cmdstr)