def setup_serializer(self): self.test_dir = mkdtemp() self.serial = OutputStreamSerializer([self.test_dir]) self.filename = "STARS" self.content = "123\n456\n789" self.expected = [ line.encode('ascii') for line in self.content.split('\n') ]
def test_init_with_output_path(self): path = OutputPath(self.test_dir, 'one', 'two', 'three') stream = OutputStreamSerializer(path) assert_equal(stream.base_path, str(path))