Removed non-working unit-tests.

This commit is contained in:
Kenneth Reitz
2010-09-13 16:11:07 -04:00
parent 647f69044f
commit 3fb729aac6
13 changed files with 0 additions and 51 deletions
View File
View File
View File
View File
View File
View File
-1
View File
@@ -1 +0,0 @@
# example: md5(csv) == md5(Data(csv).export(to='json'))
-1
View File
@@ -1 +0,0 @@
import tablib
View File
View File
View File
View File
-49
View File
@@ -1,49 +0,0 @@
import tablib
headers = ('first_name', 'last_name', 'gpa')
data = [
('John', 'Adams', 4.0),
('George', 'Washington', 2.6),
('Henry', 'Ford', 2.3)
]
data = tablib.Dataset(*data, headers=headers)
data.append(['Kenneth' ,'Reitz', 4.3])
#print '***WITH HEADERS***'
#print 'First Names:\n',
#print data['first_name']
#print '\nYAML:'
#print data.yaml
#
#print 'JSON:'
#print data.json
#
#print '\nCSV:'
#print data.csv
#
#
#print '***AND WITHOUT HEADERS***'
#
#data.headers = None
#
#print '\nYAML:'
#print data.yaml
#
#print 'JSON:'
#print data.json
#
#print '\nCSV:'
#print data.csv
book = tablib.DataBook()
book.add_sheet(data)
book.add_sheet(data)
print book.json