summaryrefslogtreecommitdiffstats
path: root/core/TESTS/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/TESTS/tests.py')
-rw-r--r--core/TESTS/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/TESTS/tests.py b/core/TESTS/tests.py
index c93e35e..d0cce71 100644
--- a/core/TESTS/tests.py
+++ b/core/TESTS/tests.py
@@ -168,7 +168,7 @@ class PageTests(TestCase):
response = self.client.get("/1623/115.htm")
self.assertEqual(response.status_code, HTTPStatus.NOT_FOUND)
content = response.content.decode()
- ph = r"Page not found 1623/115.htm"
+ ph = r"Page not found 1623//115/115.htm"
phmatch = re.search(ph, content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")
@@ -515,12 +515,12 @@ class PageTests(TestCase):
phmatch = re.search(ph, content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")
- def test_eastings(self):
+ def test_stations(self):
# Needs another test with test data
response = self.client.get("/stations")
self.assertEqual(response.status_code, HTTPStatus.OK)
content = response.content.decode()
- ph = r"<tr><th>Survex Station</th><th>x</th><th>y</th>"
+ ph = "<tr><th>Survex Station</th><th>x "
phmatch = re.search(ph, content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")