Skip to content

Commit 421ebe0

Browse files
committed
Fixes #99: Add tests for getBaseUrl method.
Add tests for getBaseUrl() method: - To improve the coverage of main code base. - To test functionality of getBaseUrl() method using assertion.
1 parent 92cc1f0 commit 421ebe0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ def test_hello(self):
3434
result = self.loklak.hello()
3535
self.assertEqual(result['status'], u'ok')
3636

37+
def test_getBaseUrl(self):
38+
"""Test base url."""
39+
result = self.loklak.getBaseUrl()
40+
self.assertEqual(result, self.baseUrl)
41+
3742
def test_geocode(self):
3843
"""Test geological features."""
3944
result = self.loklak.geocode()

0 commit comments

Comments
 (0)