Adding in some tests, renaming aggregate functions

This commit is contained in:
Andrew Melton
2013-01-22 15:38:22 -05:00
parent 1708f6a501
commit 56b37ea2df
6 changed files with 403 additions and 24 deletions

View File

@@ -17,13 +17,3 @@ def dt_from_decimal(dec):
daittyme = datetime.datetime.utcfromtimestamp(integer)
return daittyme.replace(microsecond=micro)
if __name__ == '__main__':
now = datetime.datetime.utcnow()
d = dt_to_decimal(now)
daittyme = dt_from_decimal(d)
print repr(now)
print repr(d)
print repr(daittyme)
assert(now == daittyme)