Package dbf :: Module tests
[hide private]
[frames] | no frames]

Module tests

source code

Classes [hide private]
  unicode
str(object='') -> string
  TestChar
  TestDateTime
Testing Date
  TestNull
  TestLogical
Testing Logical
  TestQuantum
Testing Quantum
  TestExceptions
  TestIndexLocation
  TestDbfCreation
  TestDbfRecords
Testing records
  TestDbfRecordTemplates
Testing records
  TestDbfFunctions
  TestDbfNavigation
  TestDbfLists
DbfList tests
  TestWhatever
move tests here to run one at a time while debugging
Functions [hide private]
list of integers
xrange(stop)
range(start, stop[, step]) -> list of integers
 
permutate(Xs, N) source code
 
combinate(Xs, N)
Generate combinations of N items from list Xs
source code
 
index(sequence)
returns integers 0 - len(sequence)
source code
 
active(rec) source code
 
inactive(rec) source code
Variables [hide private]
  py_ver = (2, 7)
  module = {'BadDataError': <class 'dbf.ver_2.BadDataError'>, 'B...
  EOF = '\x1a'
  MISC = '\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e...
  PHOTO = '\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8\xf7\xf6\xf5\xf4\xf3\...
  words = ['Soft', 'rains,', 'given', 'time,', 'have', 'rounded'...
  numbers = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43,...
  floats = [4.0, 4.0, 8.0, 9.0, 17.0, 15.0, 22.0, 21.0, 27.0, 36...
  last = 541
  Falsth = Logical('F')
  Null = <null>
  NullDate = Date()
  NullDateTime = DateTime()
  NullTime = Time()
  Off = Quantum('N')
  On = Quantum('Y')
  Other = Quantum('?')
  Truth = Logical('T')
  Unknown = Logical('?')
  Vapor = <dbf.ver_2.Vapor object>
  __package__ = 'dbf'
  i = 255
  number = 541
Function Details [hide private]

xrange(stop)

 

range(start, stop[, step]) -> list of integers

Return a list containing an arithmetic progression of integers. range(i, j) returns [i, i+1, i+2, ..., j-1]; start (!) defaults to 0. When step is given, it specifies the increment (or decrement). For example, range(4) returns [0, 1, 2, 3]. The end point is omitted! These are exactly the valid indices for a list of 4 elements.

Returns: list of integers

Variables Details [hide private]

module

Value:
{'BadDataError': <class 'dbf.ver_2.BadDataError'>,
 'Bof': <class 'dbf.ver_2.Bof'>,
 'Char': <class 'dbf.ver_2.Char'>,
 'CodePage': <class 'dbf.ver_2.CodePage'>,
 'DataOverflowError': <class 'dbf.ver_2.DataOverflowError'>,
 'Date': <class 'dbf.ver_2.Date'>,
 'DateTime': <class 'dbf.ver_2.DateTime'>,
 'DbfError': <class 'dbf.ver_2.DbfError'>,
...

MISC

Value:
'''\x00\x01\x02\x03\x04\x05\x06\x07\x08\t
\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\
\x1d\x1e\x1f !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWX\
YZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\x80\x81\x82\x83\x84\x85\x8\
6\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\\
x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa\
9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\\
xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xc\
...

PHOTO

Value:
'''\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0\xe\
f\xee\xed\xec\xeb\xea\xe9\xe8\xe7\xe6\xe5\xe4\xe3\xe2\xe1\xe0\xdf\xde\\
xdd\xdc\xdb\xda\xd9\xd8\xd7\xd6\xd5\xd4\xd3\xd2\xd1\xd0\xcf\xce\xcd\xc\
c\xcb\xca\xc9\xc8\xc7\xc6\xc5\xc4\xc3\xc2\xc1\xc0\xbf\xbe\xbd\xbc\xbb\\
xba\xb9\xb8\xb7\xb6\xb5\xb4\xb3\xb2\xb1\xb0\xaf\xae\xad\xac\xab\xaa\xa\
9\xa8\xa7\xa6\xa5\xa4\xa3\xa2\xa1\xa0\x9f\x9e\x9d\x9c\x9b\x9a\x99\x98\\
x97\x96\x95\x94\x93\x92\x91\x90\x8f\x8e\x8d\x8c\x8b\x8a\x89\x88\x87\x8\
6\x85\x84\x83\x82\x81\x80\x7f~}|{zyxwvutsrqponmlkjihgfedcba`_^]\\[ZYXW\
...

words

Value:
['Soft',
 'rains,',
 'given',
 'time,',
 'have',
 'rounded',
 'the',
 'angles',
...

numbers

Value:
[2,
 3,
 5,
 7,
 11,
 13,
 17,
 19,
...

floats

Value:
[4.0,
 4.0,
 8.0,
 9.0,
 17.0,
 15.0,
 22.0,
 21.0,
...