File size: 446 Bytes
53a6315
 
5dc04ad
 
53a6315
 
 
5dc04ad
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import unittest

from data_service import DataService

class TestDataService(unittest.TestCase):
  def test_get_patients(self):
    # TODO: I'm just stubbing out what I think the API could look like.
    #data_service = DataService().to("").withCreds("").build()
    with DataService().build() as data_service:
      patients = data_service.get_patients()
      self.assertTrue(isinstance(patients, list))
      self.assertTrue(len(patients) > 0)