Skip to content

Commit 614e30d

Browse files
authored
Add files via upload
1 parent 4de6222 commit 614e30d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build/lib/tests/pytrailTest.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from pytrail.__init__ import __version__
2+
from pytrail.models import Client
3+
from pytrail.exceptions import InvalidNameException
4+
5+
def TestVersion():
6+
assert __version__ == '0.1.0'
7+
8+
def TestClient():
9+
assert Client('red notice').trailer == 'https://www.youtube.com/watch/?v=T6l3mM7AWew'
10+
11+
def TestException():
12+
assert Client('') == InvalidNameException('the name you entered is invalid.')

0 commit comments

Comments
 (0)