def test_readTrailInstant(self): trail_temp = trail() trail_temp.readTrailInstant(TEST_TRAIL, "Stuff", 0) self.assertTrue( (trail_temp.getMatrix()==TEST_TRAIL).all(), "Input trail does not match test trail!")
def test_readTrail(self): trail_temp = trail() trail_temp.readTrail(TEST_TRAIL_DB_ID) self.assertTrue( (trail_temp.getMatrix()==TEST_TRAIL).all(), "Input trail does not match test trail!")
def setUp(self): # This class requires accessing the database. self.pgdb = DBUtils(password=os.environ['PSYCOPG2_DB_PASS']) self.trail_i = trail() self.trail_i.readTrail(TEST_TRAIL_DB_ID)
def test_readTrailInstant(self): trail_temp = trail() trail_temp.readTrailInstant(TEST_TRAIL, "Stuff", 0) self.assertTrue((trail_temp.getMatrix() == TEST_TRAIL).all(), "Input trail does not match test trail!")
def test_readTrail(self): trail_temp = trail() trail_temp.readTrail(TEST_TRAIL_DB_ID) self.assertTrue((trail_temp.getMatrix() == TEST_TRAIL).all(), "Input trail does not match test trail!")