MCPcopy Index your code
hub / github.com/clips/pattern / setUp

Method setUp

test/test_db.py:841–854  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

839class TestCSV(unittest.TestCase):
840
841 def setUp(self):
842 # Create test table.
843 self.csv = db.CSV(
844 rows=[
845 [u"Schrödinger", "cat", True, 3, db.date(2009, 11, 3)],
846 [u"Hofstadter", "labrador", True, 5, db.date(2007, 8, 4)]
847 ],
848 fields=[
849 ["name", db.STRING],
850 ["type", db.STRING],
851 ["tail", db.BOOLEAN],
852 [ "age", db.INTEGER],
853 ["date", db.DATE],
854 ])
855
856 def test_csv_header(self):
857 # Assert field headers parser.

Callers 9

runFunction · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45

Calls 1

dateMethod · 0.80

Tested by

no test coverage detected