intial commit of tests, documentation
This commit is contained in:
15
tests/test_user.py
Normal file
15
tests/test_user.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from tests.base import BaseModelTestCase
|
||||
from unittest import TestCase
|
||||
from pyteamsnap.models import User, Me
|
||||
|
||||
|
||||
class TestUser(BaseModelTestCase, TestCase):
|
||||
__test__ = True
|
||||
TestClass = User
|
||||
|
||||
def test_data(self):
|
||||
with self.cassette:
|
||||
instance = Me(self.client)
|
||||
self.assertIsInstance(instance, User)
|
||||
self.assertTrue(len(instance.data))
|
||||
pass
|
||||
Reference in New Issue
Block a user