mirror of
https://github.com/Reckless-Satoshi/robosats.git
synced 2024-09-11 19:57:11 +03:00
20 lines
593 B
Python
20 lines
593 B
Python
from django.test import Client, TestCase
|
|
from django.urls import reverse
|
|
|
|
|
|
class FrontendFetchTest(TestCase):
|
|
def setUp(self):
|
|
self.client = Client()
|
|
|
|
def test_basic_frontend_url_content(self):
|
|
path = reverse("basic")
|
|
response = self.client.get(path)
|
|
self.assertContains(response, "<html>")
|
|
self.assertContains(response, "main.js")
|
|
|
|
def test_pro_frontend_url_content(self):
|
|
path = reverse("pro")
|
|
response = self.client.get(path)
|
|
self.assertContains(response, "<html>")
|
|
self.assertContains(response, "pro.js")
|