'Test several bad URLs for validation'

def test_bad_git_url(self):

    course_key = CourseLocator('org', 'course', 'run')
    with self.assertRaisesRegexp(GitExportError, unicode(GitExportError.URL_BAD)):
        git_export_utils.export_to_git(course_key, 'Sillyness')
    with self.assertRaisesRegexp(GitExportError, unicode(GitExportError.URL_BAD)):
        git_export_utils.export_to_git(course_key, 'example.com:edx/notreal')
    with self.assertRaisesRegexp(GitExportError, unicode(GitExportError.URL_NO_AUTH)):
        git_export_utils.export_to_git(course_key, 'http://blah')
