diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2021-05-30 16:44:17 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2021-05-30 16:44:17 +0100 |
| commit | 62914dc850b94fdcce90811dab568eb3a6d37729 (patch) | |
| tree | 27fbe2d8564151a9b545302904d2028ee6a0da11 /tests | |
| parent | Add provider for ECCC (partially addresses #104) (diff) | |
| parent | Merge branch 'feature/provider_iacr' (diff) | |
| download | paper2remarkable-62914dc850b94fdcce90811dab568eb3a6d37729.tar.gz paper2remarkable-62914dc850b94fdcce90811dab568eb3a6d37729.zip | |
Merge branch 'master' into feature/provider_eccc
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_providers.py | 22 | ||||
| -rw-r--r-- | tests/test_ui.py | 11 |
2 files changed, 33 insertions, 0 deletions
diff --git a/tests/test_providers.py b/tests/test_providers.py index efc4be1..33e0286 100644 --- a/tests/test_providers.py +++ b/tests/test_providers.py @@ -23,6 +23,7 @@ from paper2remarkable.providers import ( CiteSeerX, ECCC, HTML, + IACR, JMLR, LocalFile, Nature, @@ -502,6 +503,27 @@ class TestProviders(unittest.TestCase): filename = prov.run(url) self.assertEqual(exp, os.path.basename(filename)) + def test_iacr_1(self): + prov = IACR(upload=False, verbose=VERBOSE) + url = "https://eprint.iacr.org/2021/489" + exp = "Xu_et_al_-_ROSE_Robust_Searchable_Encryption_With_Forward_and_Backward_Security_and_Practical_Performance_2021.pdf" + filename = prov.run(url) + self.assertEqual(exp, os.path.basename(filename)) + + def test_iacr_2(self): + prov = IACR(upload=False, verbose=VERBOSE) + url = "https://eprint.iacr.org/2007/474.pdf" + exp = "Cochran_-_Notes_on_the_Wang_Et_Al._2_63_SHA-1_Differential_Path_2007.pdf" + filename = prov.run(url) + self.assertEqual(exp, os.path.basename(filename)) + + def test_iacr_3(self): + prov = IACR(upload=False, verbose=VERBOSE) + url = "http://eprint.iacr.org/1996/008" + exp = "Naor_Wool_-_Access_Control_and_Signatures_via_Quorum_Secret_Sharing_1996.pdf" + filename = prov.run(url) + self.assertEqual(exp, os.path.basename(filename)) + if __name__ == "__main__": unittest.main() diff --git a/tests/test_ui.py b/tests/test_ui.py index 87b66d8..5ecb3e1 100644 --- a/tests/test_ui.py +++ b/tests/test_ui.py @@ -24,6 +24,7 @@ from paper2remarkable.providers import ( CVF, ECCC, HTML, + IACR, JMLR, LocalFile, Nature, @@ -115,6 +116,16 @@ class TestUI(unittest.TestCase): "https://publications.aston.ac.uk/id/eprint/38334/1/5th_Artificial_Neural_Networks.pdf", ), ( + IACR, + "https://eprint.iacr.org/1999/011", + "https://eprint.iacr.org/1999/011", + ), + ( + IACR, + "https://eprint.iacr.org/2021/685.pdf", + "https://eprint.iacr.org/2021/685.pdf", + ), + ( JMLR, "https://www.jmlr.org/papers/volume17/14-526/14-526.pdf", "https://www.jmlr.org/papers/volume17/14-526/14-526.pdf", |
