示例#1
0
    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!")
示例#2
0
    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!")
示例#3
0
 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)
示例#4
0
    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!")
示例#5
0
    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!")
示例#6
0
 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)