3535 generate_message
3636
3737
38- class ReaderWriterTest (unittest . TestCase ):
38+ class ReaderWriterTest (object ):
3939 """Tests a pair of writer and reader by writing all data first and
4040 then reading all data and checking if they could be reconstructed
4141 correctly. Optionally writes some comments as well.
@@ -227,7 +227,7 @@ def assertIncludesComments(self, filename):
227227 self .assertIn (comment , output_contents )
228228
229229
230- class TestAscFileFormat (ReaderWriterTest ):
230+ class TestAscFileFormat (ReaderWriterTest , unittest . TestCase ):
231231 """Tests can.ASCWriter and can.ASCReader"""
232232
233233 def __init__ (self ):
@@ -237,7 +237,7 @@ def __init__(self):
237237 )
238238
239239
240- class TestBlfFileFormat (ReaderWriterTest ):
240+ class TestBlfFileFormat (ReaderWriterTest , unittest . TestCase ):
241241 """Tests can.BLFWriter and can.BLFReader"""
242242
243243 def __init__ (self ):
@@ -265,7 +265,7 @@ def test_read_known_file(self):
265265 self .assertEqual (messages [1 ].channel , 0 )
266266
267267
268- class TestCanutilsFileFormat (ReaderWriterTest ):
268+ class TestCanutilsFileFormat (ReaderWriterTest , unittest . TestCase ):
269269 """Tests can.CanutilsLogWriter and can.CanutilsLogReader"""
270270
271271 def __init__ (self ):
@@ -275,7 +275,7 @@ def __init__(self):
275275 )
276276
277277
278- class TestCsvFileFormat (ReaderWriterTest ):
278+ class TestCsvFileFormat (ReaderWriterTest , unittest . TestCase ):
279279 """Tests can.ASCWriter and can.ASCReader"""
280280
281281 def __init__ (self ):
@@ -285,7 +285,7 @@ def __init__(self):
285285 )
286286
287287
288- class TestSqliteDatabaseFormat (ReaderWriterTest ):
288+ class TestSqliteDatabaseFormat (ReaderWriterTest , unittest . TestCase ):
289289 """Tests can.SqliteWriter and can.SqliteReader"""
290290
291291 def __init__ (self ):
0 commit comments