def setUp(self): """Initialize data used in the tests.""" self.md_table = MetadataTable(METADATA_1.split('\n')) self.vocabs_1 = VocabularySet({ 'vocab_1': VOCAB_1.split('\n'), 'vocab_2': VOCAB_2.split('\n') }) self.vocabs_2 = VocabularySet({ 'vocab_1': VOCAB_1.split('\n'), 'vocab_3': VOCAB_2.split('\n') })
def setUp(self): """Initialize data used in the tests.""" self.md_table = MetadataTable(METADATA_1.split('\n')) self.vocabs_1 = VocabularySet({ 'vocab_1': VOCAB_1.split('\n'), 'vocab_2': VOCAB_2.split('\n') }) self.vocabs_2 = VocabularySet({ 'vocab_1': VOCAB_1.split('\n'), 'vocab_3': VOCAB_2.split('\n') }) def fail_all(e): raise ValueError self.fail_all_fn = fail_all def pass_all(e): pass self.pass_all_fn = pass_all