Fakultas Ilmu Komputer UI

tests.py 264 Bytes
Newer Older
Putu Agastya's avatar
Putu Agastya committed
1
2
from django.test import TestCase, Client
from django.urls import resolve
Samuel Dimas's avatar
Samuel Dimas committed
3

Putu Agastya's avatar
Putu Agastya committed
4
5
6
7
8
class DaftarKatalogTest(TestCase):
    def test_daftar_katalog_url_exist(self):
        url = "/"
        response = Client().get(f'{url}')
        self.assertEqual(response.status_code,200)