'Make sure the template behaves well when rendered despite there not being any logs.
(This is for courses imported using methods other than the git_add_course command)'

def test_gitlog_no_logs(self):

    self._setstaff_login()
    self._mkdir(settings.GIT_REPO_DIR)
    self._add_edx4edx()
    import_logs = CourseImportLog.objects.all()
    import_logs.delete()
    response = self.client.get(reverse('gitlogs_detail', kwargs={'course_id': 'MITx/edx4edx/edx4edx'}))
    self.assertIn('No    git    import    logs    have    been    recorded    for    this    course.', response.content)
    self._rm_edx4edx()
