diff options
| author | Árni Dagur <arni@dagur.eu> | 2020-06-07 17:51:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-07 17:51:42 -0400 |
| commit | 55611e2c74aec18a60d56ae63e92cc3bc6f4f6b7 (patch) | |
| tree | 33024145cf356662b9d8994fca02124a79ad0e57 /tests | |
| parent | bee204e07a380477371a560479158c86abfba731 (diff) | |
Allow more options when constructing Engine (#6)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_engine.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_engine.py b/tests/test_engine.py new file mode 100644 index 0000000..602d794 --- /dev/null +++ b/tests/test_engine.py | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | import adblock | ||
| 2 | |||
| 3 | def test_engine_arguments(): | ||
| 4 | # None of these should panic | ||
| 5 | adblock.Engine() | ||
| 6 | adblock.Engine([]) | ||
| 7 | adblock.Engine(network_filters=None) | ||
| 8 | adblock.Engine(network_filters=[]) | ||
| 9 | adblock.Engine(load_network=False, load_cosmetic=True, debug=False) | ||
| 10 | adblock.Engine(debug=True) | ||
