def setUp(self): self.table = yoursql.Table('testcases/student.csv') self.table[45280742]['gpa'] = 3.99
def testInit(self): self.table.export('new_student.csv') new_table = yoursql.Table('new_student.csv', primary_key='id') self.assertEqual(new_table[45280742]['gpa'], 3.99)
def setUp(self): self.table = yoursql.Table('testcases/student.csv')