'Check to make sure we are getting git info for courses'

def test_course_info(self):

    table_re = re.compile('\n                                                <tr>\\s+\n                                                <td>edX\\sAuthor\\sCourse</td>\\s+        #    expected    test    git    course    name\n                                                <td>MITx/edx4edx/edx4edx</td>\\s+        #    expected    test    git    course_id\n                                                <td>[a-fA-F\\d]{40}</td>        #    git    sha1    hash\n                                ', re.VERBOSE)
    self._setstaff_login()
    self._mkdir(settings.GIT_REPO_DIR)
    response = self.client.get(reverse('sysadmin_courses'))
    self.assertNotRegexpMatches(response.content, table_re)
    response = self._add_edx4edx()
    self.assertRegexpMatches(response.content, table_re)
