import pytest

from django.test import TestCase
from django.core.urlresolvers import reverse

from molo.core.tests.base import MoloTestCaseMixin


@pytest.mark.django_db
class TestImportFromGit(TestCase, MoloTestCaseMixin):

    def setUp(self):
        self.mk_main()
        self.user = self.login()

    def test_wagtail_has_import_menu_item(self):
        response = self.client.get(reverse("import-from-git"))
        self.assertContains(response, 'Import content from Git')

import pytest

from django.test import TestCase
from django.core.urlresolvers import reverse

from molo.core.tests.base import MoloTestCaseMixin


@pytest.mark.django_db
class TestImportFromGit(TestCase, MoloTestCaseMixin):

    def setUp(self):
        self.mk_main()
        self.user = self.login()

    def test_wagtail_has_import_menu_item(self):
        response = self.client.get(reverse('import-from-git'))
        self.assertContains(
            response, 'Import content from a Universal Core site')

Fix import UI django view's tests
Fix import UI django view's tests

  import pytest
  
  from django.test import TestCase
  from django.core.urlresolvers import reverse
  
  from molo.core.tests.base import MoloTestCaseMixin
  
  
  @pytest.mark.django_db
  class TestImportFromGit(TestCase, MoloTestCaseMixin):
  
      def setUp(self):
          self.mk_main()
          self.user = self.login()
  
      def test_wagtail_has_import_menu_item(self):
-         response = self.client.get(reverse("import-from-git"))
+         response = self.client.get(reverse('import-from-git'))
-         self.assertContains(response, 'Import content from Git')
+         self.assertContains(
+             response, 'Import content from a Universal Core site')
  
Fix import UI django view's tests
## Code Before:
import pytest

from django.test import TestCase
from django.core.urlresolvers import reverse

from molo.core.tests.base import MoloTestCaseMixin


@pytest.mark.django_db
class TestImportFromGit(TestCase, MoloTestCaseMixin):

    def setUp(self):
        self.mk_main()
        self.user = self.login()

    def test_wagtail_has_import_menu_item(self):
        response = self.client.get(reverse("import-from-git"))
        self.assertContains(response, 'Import content from Git')

## Instruction:
Fix import UI django view's tests
## Code After:
import pytest

from django.test import TestCase
from django.core.urlresolvers import reverse

from molo.core.tests.base import MoloTestCaseMixin


@pytest.mark.django_db
class TestImportFromGit(TestCase, MoloTestCaseMixin):

    def setUp(self):
        self.mk_main()
        self.user = self.login()

    def test_wagtail_has_import_menu_item(self):
        response = self.client.get(reverse('import-from-git'))
        self.assertContains(
            response, 'Import content from a Universal Core site')
