'Test to make sure an appropriate error is displayed
if course hasn\'t set giturl.'

def test_giturl_missing(self):

    response = self.client.get(self.test_url)
    self.assertEqual(200, response.status_code)
    self.assertIn('giturl    must    be    defined    in    your    course    settings    before    you    can    export    to    git.', response.content)
    response = self.client.get('{}?action=push'.format(self.test_url))
    self.assertEqual(200, response.status_code)
    self.assertIn('giturl    must    be    defined    in    your    course    settings    before    you    can    export    to    git.', response.content)
