from django.test import SimpleTestCase
from django.urls import reverse, resolve
from about.views import about, portfolio, connect, portfolio_detail


class TestAboutUrls(SimpleTestCase):

    def test_about_url_resolves(self):
        url = reverse('about')
        self.assertEquals(resolve(url).func, about)

    def test_portfolio_url_resolves(self):
        url = reverse('my_portafolio')
        self.assertEquals(resolve(url).func, portfolio)

    def test_connect_url_resolves(self):
        url = reverse('lets_connect')
        self.assertEquals(resolve(url).func, connect)

    def test_portfolio_detail_url_resolves(self):
        portfolio_id = 1000
        url = reverse('my_portfolio_slider', args=(portfolio_id,))
        self.assertEquals(resolve(url).func, portfolio_detail)

6095d4b1de336fd38186d481ff9cdcb50bb0c16e
<mask token>


class TestAboutUrls(SimpleTestCase):
    <mask token>
    <mask token>

    def test_connect_url_resolves(self):
        url = reverse('lets_connect')
        self.assertEquals(resolve(url).func, connect)
    <mask token>

<mask token>


class TestAboutUrls(SimpleTestCase):

    def test_about_url_resolves(self):
        url = reverse('about')
        self.assertEquals(resolve(url).func, about)
    <mask token>

    def test_connect_url_resolves(self):
        url = reverse('lets_connect')
        self.assertEquals(resolve(url).func, connect)
    <mask token>

<mask token>


class TestAboutUrls(SimpleTestCase):

    def test_about_url_resolves(self):
        url = reverse('about')
        self.assertEquals(resolve(url).func, about)

    def test_portfolio_url_resolves(self):
        url = reverse('my_portafolio')
        self.assertEquals(resolve(url).func, portfolio)

    def test_connect_url_resolves(self):
        url = reverse('lets_connect')
        self.assertEquals(resolve(url).func, connect)
    <mask token>

<mask token>


class TestAboutUrls(SimpleTestCase):

    def test_about_url_resolves(self):
        url = reverse('about')
        self.assertEquals(resolve(url).func, about)

    def test_portfolio_url_resolves(self):
        url = reverse('my_portafolio')
        self.assertEquals(resolve(url).func, portfolio)

    def test_connect_url_resolves(self):
        url = reverse('lets_connect')
        self.assertEquals(resolve(url).func, connect)

    def test_portfolio_detail_url_resolves(self):
        portfolio_id = 1000
        url = reverse('my_portfolio_slider', args=(portfolio_id,))
        self.assertEquals(resolve(url).func, portfolio_detail)

from django.test import SimpleTestCase
from django.urls import reverse, resolve
from about.views import about, portfolio, connect, portfolio_detail


class TestAboutUrls(SimpleTestCase):

    def test_about_url_resolves(self):
        url = reverse('about')
        self.assertEquals(resolve(url).func, about)

    def test_portfolio_url_resolves(self):
        url = reverse('my_portafolio')
        self.assertEquals(resolve(url).func, portfolio)

    def test_connect_url_resolves(self):
        url = reverse('lets_connect')
        self.assertEquals(resolve(url).func, connect)

    def test_portfolio_detail_url_resolves(self):
        portfolio_id = 1000
        url = reverse('my_portfolio_slider', args=(portfolio_id,))
        self.assertEquals(resolve(url).func, portfolio_detail)
