def test_insert(self): DatabaseInsertRows.insert(self.database_name, self.table_name, self.columns, self.row) database = Database(self.database_name, True) with database: _, result, _ = tbl_rows_get(database, self.table_name) self.assertEqual(result, self.row)
def test_insert_encoded(self): DatabaseInsertRows.insert(self.database_name, self.table_name, self.columns, self.row, encoding="base64") database = Database(self.database_name, True) with database: _, result, _ = tbl_rows_get(database, self.table_name) self.assertEqual(DatabaseBase._decode_2darray(result), self.row)