@@ -74,10 +74,11 @@ def setUp(self):
7474 """
7575 self ._setup_db ()
7676
77- def test_inbox_table_init (self ):
77+ def test_initializer (self ):
7878 """
79- Test inbox table
79+ Test db initialization
8080 """
81+ # check inbox table
8182 res = self .get_table_schema ("inbox" )
8283 check = [['msgid' , 'blob' ],
8384 ['toaddress' , 'text' ],
@@ -91,10 +92,7 @@ def test_inbox_table_init(self):
9192 ['sighash' , 'blob' ]]
9293 self .assertEqual (res , check , "inbox table not valid" )
9394
94- def test_sent_table_init (self ):
95- """
96- Test sent table
97- """
95+ # check sent table
9896 res = self .get_table_schema ("sent" )
9997 check = [['msgid' , 'blob' ],
10098 ['toaddress' , 'text' ],
@@ -113,49 +111,34 @@ def test_sent_table_init(self):
113111 ['ttl' , 'int' ]]
114112 self .assertEqual (res , check , "sent table not valid" )
115113
116- def test_subscriptions_table_init (self ):
117- """
118- Test subscriptions table
119- """
114+ # check subscriptions table
120115 res = self .get_table_schema ("subscriptions" )
121116 check = [['label' , 'text' ],
122117 ['address' , 'text' ],
123118 ['enabled' , 'bool' ]]
124119 self .assertEqual (res , check , "subscriptions table not valid" )
125120
126- def test_addressbook_table_init (self ):
127- """
128- Test addressbook table
129- """
121+ # check addressbook table
130122 res = self .get_table_schema ("addressbook" )
131123 check = [['label' , 'text' ],
132124 ['address' , 'text' ]]
133125 self .assertEqual (res , check , "addressbook table not valid" )
134126
135- def test_blacklist_table_init (self ):
136- """
137- Test blacklist table
138- """
127+ # check blacklist table
139128 res = self .get_table_schema ("blacklist" )
140129 check = [['label' , 'text' ],
141130 ['address' , 'text' ],
142131 ['enabled' , 'bool' ]]
143132 self .assertEqual (res , check , "blacklist table not valid" )
144133
145- def test_whitelist_table_init (self ):
146- """
147- Test whitelist table
148- """
134+ # check whitelist table
149135 res = self .get_table_schema ("whitelist" )
150136 check = [['label' , 'text' ],
151137 ['address' , 'text' ],
152138 ['enabled' , 'bool' ]]
153139 self .assertEqual (res , check , "whitelist table not valid" )
154140
155- def test_pubkeys_table_init (self ):
156- """
157- Test pubkeys table
158- """
141+ # check pubkeys table
159142 res = self .get_table_schema ("pubkeys" )
160143 check = [['address' , 'text' ],
161144 ['addressversion' , 'int' ],
@@ -164,10 +147,7 @@ def test_pubkeys_table_init(self):
164147 ['usedpersonally' , 'text' ]]
165148 self .assertEqual (res , check , "pubkeys table not valid" )
166149
167- def test_inventory_table_init (self ):
168- """
169- Test inventory table
170- """
150+ # check inventory table
171151 res = self .get_table_schema ("inventory" )
172152 check = [['hash' , 'blob' ],
173153 ['objecttype' , 'int' ],
@@ -177,19 +157,13 @@ def test_inventory_table_init(self):
177157 ['tag' , 'blob' ]]
178158 self .assertEqual (res , check , "inventory table not valid" )
179159
180- def test_settings_table_init (self ):
181- """
182- Test settings table
183- """
160+ # check settings table
184161 res = self .get_table_schema ("settings" )
185162 check = [['key' , 'blob' ],
186163 ['value' , 'blob' ]]
187164 self .assertEqual (res , check , "settings table not valid" )
188165
189- def test_objectprocessorqueue_table_init (self ):
190- """
191- Test objectprocessorqueue table
192- """
166+ # check objectprocessorqueue table
193167 res = self .get_table_schema ("objectprocessorqueue" )
194168 check = [['objecttype' , 'int' ],
195169 ['data' , 'blob' ]]
0 commit comments