aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/test_tpb.py
diff options
context:
space:
mode:
authorMatt Lyon <matthewlyon18@gmail.com>2020-09-09 12:26:33 +0100
committerMatt Lyon <matthewlyon18@gmail.com>2020-09-09 12:26:33 +0100
commit4e2d04eca0147396092d2163bd8706fe497a8bf1 (patch)
treed401230004fba97c37abf71c93f4b3c9078f33b0 /tests/unit/test_tpb.py
parent1ad2946a5ff0902c8a028b7caec67037b8e61ce3 (diff)
downloadtpb-lite-4e2d04eca0147396092d2163bd8706fe497a8bf1.tar.gz
tpb-lite-4e2d04eca0147396092d2163bd8706fe497a8bf1.tar.bz2
tpb-lite-4e2d04eca0147396092d2163bd8706fe497a8bf1.zip
added tests, switched to lxml
Diffstat (limited to 'tests/unit/test_tpb.py')
-rw-r--r--tests/unit/test_tpb.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/test_tpb.py b/tests/unit/test_tpb.py
new file mode 100644
index 0000000..07eb5d1
--- /dev/null
+++ b/tests/unit/test_tpb.py
@@ -0,0 +1,9 @@
+import unittest
+
+from tpblite import TPB
+
+class TPBTestCase(unittest.TestCase):
+
+ def test_str(self):
+ t = TPB('https://tpb.party')
+ self.assertEqual(str(t), 'TPB Object, base URL: https://tpb.party')