def testLegitimate(self):
        """Attempt to check an prescription that is due to be taken today"""
        response = api.getPrescriptionsDueToday('patient', datetime.datetime.now())

        result = {}
        result['username'] = "******"  
        result['medication'] = "test"
        result['dosage'] = 1
        result['dosageunit'] = "test"
        result['quantity'] = 1
        result['startdate'] = datetime.datetime.now().date()
        result['enddate'] = datetime.datetime(2020, 1, 1).date()
        result['stockleft'] = 1
        result['prerequisite'] = "test"
        result['dosageform'] = "test"
        result['frequency'] = 1
        result['Monday'] = True
        result['Tuesday'] = True
        result['Wednesday'] = True
        result['Thursday'] = True 
        result['Friday'] = True
        result['Saturday'] = True
        result['Sunday'] = True

        prescription = response[0]

        self.assertEqual(prescription['username'], result['username'])
        self.assertEqual(prescription['medication'], result['medication'])
        self.assertEqual(prescription['dosage'], result['dosage'])
        self.assertEqual(prescription['dosageunit'], result['dosageunit'])
        self.assertEqual(prescription['quantity'], result['quantity'])
        self.assertEqual(prescription['startdate'], result['startdate'])
        self.assertEqual(prescription['enddate'], result['enddate'])
        self.assertEqual(prescription['stockleft'], result['stockleft'])
        self.assertEqual(prescription['prerequisite'], result['prerequisite'])
        self.assertEqual(prescription['dosageform'], result['dosageform'])
        self.assertEqual(prescription['frequency'], result['frequency'])
        self.assertEqual(prescription['Monday'], result['Monday'])
        self.assertEqual(prescription['Tuesday'], result['Tuesday'])
        self.assertEqual(prescription['Wednesday'], result['Wednesday'])
        self.assertEqual(prescription['Thursday'], result['Thursday'])
        self.assertEqual(prescription['Friday'], result['Friday'])
        self.assertEqual(prescription['Saturday'], result['Saturday'])
        self.assertEqual(prescription['Sunday'], result['Sunday'])
    def testNotToday(self):
        """Attempt to check a prescription that is not due to be taken today"""
        response = api.getPrescriptionsDueToday('patient2', datetime.datetime.now())

        self.assertEqual(len(response), 0)