def test_pad_adds_zeros_on_left(self):
     instance = IndexedTrueFalseInstance([1, 2, 3, 4], True)
     instance.pad({'word_sequence_length': 5})
     assert instance.word_indices == [0, 1, 2, 3, 4]
 def test_pad_truncates_from_right(self):
     instance = IndexedTrueFalseInstance([1, 2, 3, 4], True)
     instance.pad({'word_sequence_length': 3})
     assert instance.word_indices == [2, 3, 4]