def METHOD_NAME(self):
    type_ = ['Generic', 'Generic']
    coordinates = np.array([[1, 2, 3], [1.2, 2.4, 3.6]])
    header = ['type', 'x', 'y', 'z', 'extra1', 'extra2']
    name = ['a1', 'b1']
    extra_cols = [['a2'], ['b2']]
    extra = [None, None]
    f = tempfile.NamedTemporaryFile(delete=False)
    csv_reader.write_csv_positions(f.name, type_, coordinates, name, extra, extra_cols, header)
    with open(f.name, 'r') as f:
        assert f.readline().strip() == 'type,x,y,z,extra1,extra2'
        assert f.readline().strip() == 'Generic,1.0,2.0,3.0,a1,a2'
        assert f.readline().strip() == 'Generic,1.2,2.4,3.6,b1,b2'